@bcrumbs.net/inbox 0.0.67 → 0.0.69

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bcrumbs.net/inbox",
3
3
  "description": "Inbox widget for Bread Crumbs portals",
4
- "version": "0.0.67",
4
+ "version": "0.0.69",
5
5
  "keyword": [
6
6
  "bcrumbs",
7
7
  "bc-ui",
@@ -11,6 +11,9 @@
11
11
  *
12
12
  * Forwards the PostHog distinct id so auth can alias + emit authoritative
13
13
  * "Signup Success" when JIT-provisioning a new AspNetUsers row.
14
+ *
15
+ * Captures "Signup Started" for a new account that Clerk creates from the sign-in page
16
+ * (OAuth transfer), because ClerkSignUpPanel never mounts on that path.
14
17
  */
15
18
  export declare function ClerkSessionBridge(): null;
16
19
  export default ClerkSessionBridge;
@@ -5,5 +5,8 @@ export declare const ClerkTrackingEvents: {
5
5
  readonly ForgetPasswordSuccess: "Forget Password Success";
6
6
  readonly ResetPasswordSuccess: "Reset Password Success";
7
7
  };
8
+ export declare function isFreshClerkSignUp(createdAt: Date | null | undefined, now?: number): boolean;
9
+ /** ClerkSignUpPanel is mounted on these paths and captures "Signup Started" itself. */
10
+ export declare function isSignUpPanelPath(pathname: string): boolean;
8
11
  export declare function captureClerkEvent(posthog: PostHog | null | undefined, eventName: string, properties?: Record<string, string | number | boolean | undefined>): void;
9
12
  export declare function identifyClerkUser(posthog: PostHog | null | undefined, userId: string, email?: string): void;
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * Script-tag web chat bundle (packages/websdk → script/bc-sdk.js), used in the embed snippet shown
3
- * after creating a web chat channel. Not hosted yet: point this at the final host.
3
+ * after creating a web chat channel. websdk's CI publishes it to cdn.bcrumbs.net on every push to
4
+ * main: this latest URL is cached for 5 minutes, and `bc-sdk/bc-sdk-<version>.js` is a pinned copy.
5
+ * (bc-sdk-1.0.0.js is the legacy section loader used by Page Sections, not the web chat.)
4
6
  */
5
- export declare const WEBCHAT_SDK_URL = "https://gateway.bcrumbs.net/channels/bc-sdk.js";
7
+ export declare const WEBCHAT_SDK_URL = "https://cdn.bcrumbs.net/bc-sdk/bc-sdk.js";
@@ -1,2 +1,3 @@
1
+ export declare function preloadApp(): void;
1
2
  declare function AppWrapper(): import("@emotion/react/jsx-runtime").JSX.Element;
2
3
  export default AppWrapper;
@@ -719,7 +719,7 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
719
719
  FB_setup_was_not_completed: string;
720
720
  INSTA_integration_cancelled: string;
721
721
  WABA_integration_cancelled: string;
722
- WABA_setup_did_not_respond: string;
722
+ WABA_setup_still_waiting: string;
723
723
  WABA_setup_was_not_completed: string;
724
724
  TELEGRAM_integration_cancelled: string;
725
725
  telegramBotSetup: string;
@@ -0,0 +1,7 @@
1
+ export declare const loadInboxPage: () => Promise<typeof import("../app/inbox/pages/InboxPage")>;
2
+ /**
3
+ * Starts the inbox route chunks while the app shell still waits on its startup
4
+ * gates (feature flags, theme config, workspaces, current user). Otherwise the
5
+ * chunks only start to download after all of those gates resolve.
6
+ */
7
+ export declare function prefetchLandingRoute(): void;