@bcrumbs.net/inbox 0.0.63 → 0.0.65

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 (189) hide show
  1. package/assets/ar/inbox.json +40 -6
  2. package/assets/en/inbox.json +40 -6
  3. package/e2e/auth.setup.d.ts +1 -0
  4. package/e2e/checkout/checkout.flows.d.ts +24 -0
  5. package/e2e/global.teardown.d.ts +1 -0
  6. package/e2e/support/auth.d.ts +22 -0
  7. package/e2e/support/cleanup.d.ts +20 -0
  8. package/e2e/support/config.d.ts +23 -0
  9. package/e2e/support/fixtures.d.ts +16 -0
  10. package/e2e/support/identifiers.d.ts +13 -0
  11. package/e2e/support/index.d.ts +6 -0
  12. package/index.cjs.js +39202 -1083
  13. package/index.esm.js +39206 -1088
  14. package/package.json +2 -2
  15. package/playwright.config.d.ts +0 -4
  16. package/src/app/ai/components/Crumby/CrumbyChatError.d.ts +9 -0
  17. package/src/app/ai/components/Crumby/CrumbyChatErrorBoundary.d.ts +13 -0
  18. package/src/app/ai/components/Crumby/CrumbyHeader.d.ts +9 -0
  19. package/src/app/ai/components/Crumby/CrumbyPageContext.d.ts +22 -0
  20. package/src/app/ai/components/Crumby/CrumbyRuntimeProvider.d.ts +9 -0
  21. package/src/app/ai/components/CrumbySettings/CrumbyEditsBanner.d.ts +14 -0
  22. package/src/app/ai/components/CrumbySettings/VoiceSettingsSection.d.ts +9 -0
  23. package/src/app/ai/components/playground/Button.d.ts +1 -1
  24. package/src/app/ai/components/playground/ThreadMessages.d.ts +3 -1
  25. package/src/app/ai/components/playground/TooltipIconButton.d.ts +1 -1
  26. package/src/app/ai/components/sources/mediaTypeForFile.d.ts +8 -0
  27. package/src/app/ai/config/promptSettings.d.ts +31 -0
  28. package/src/app/ai/hooks/usePromptCopilot.d.ts +22 -0
  29. package/src/app/ai/tools/PromptEditorTool.d.ts +2 -0
  30. package/src/app/ai/types/index.d.ts +1 -1
  31. package/src/app/ai/utils/clientToolResubmit.d.ts +8 -0
  32. package/src/app/ai/utils/crumbyChatFetch.d.ts +15 -0
  33. package/src/app/auth/components/AcceptInvitation.d.ts +2 -0
  34. package/src/app/auth/components/AuthLanguagePicker.d.ts +3 -0
  35. package/src/app/auth/components/AuthVisualCarousel.d.ts +1 -0
  36. package/src/app/auth/components/ClerkSessionBridge.d.ts +4 -0
  37. package/src/app/auth/components/password-page/AuthPasswordPageLayout.d.ts +3 -1
  38. package/src/app/auth/components/password-page/PasswordSuccessView.d.ts +2 -1
  39. package/src/app/auth/config/authProvider.d.ts +20 -2
  40. package/src/app/auth/config/clerkAppearance.d.ts +152 -49
  41. package/src/app/auth/config/clerkLocalization.d.ts +6 -0
  42. package/src/app/auth/pages/Auth.style.d.ts +14 -0
  43. package/src/app/auth/pages/Login.d.ts +2 -1
  44. package/src/app/auth/pages/Register.d.ts +1 -0
  45. package/src/app/billing/pages/GatewayWelcomePage.d.ts +5 -0
  46. package/src/app/billing/utils/isGatewayPlan.d.ts +2 -0
  47. package/src/app/broadcast/components/BroadcastAnalysisReciepientsHeader.d.ts +2 -1
  48. package/src/app/broadcast/components/BroadcastDetailsSection.d.ts +3 -1
  49. package/src/app/broadcast/constants.d.ts +2 -0
  50. package/src/app/dashboard/components/AgentCard.d.ts +2 -1
  51. package/src/app/dashboard/components/AgentsCard.d.ts +4 -2
  52. package/src/app/dashboard/components/BroadcastDashboard.d.ts +3 -1
  53. package/src/app/dashboard/components/ChatsByLifeCycleCard.d.ts +13 -0
  54. package/src/app/dashboard/components/DashboardFilters.d.ts +27 -0
  55. package/src/app/dashboard/components/DashboardPdfCaptureArea.d.ts +11 -0
  56. package/src/app/dashboard/components/DashboardPdfExportButton.d.ts +7 -0
  57. package/src/app/dashboard/components/DashboardPdfHeader.d.ts +11 -0
  58. package/src/app/dashboard/components/DashboardSections.d.ts +7 -2
  59. package/src/app/dashboard/components/InboxDashboard.d.ts +3 -1
  60. package/src/app/dashboard/hooks/useDashboardPdfMeta.d.ts +31 -0
  61. package/src/app/dashboard/hooks/useDashboardTabsPdfExport.d.ts +26 -0
  62. package/src/app/dashboard/utils/dashboardReportExports.d.ts +16 -1
  63. package/src/app/dashboard/utils/exportDashboardPdf.d.ts +19 -0
  64. package/src/app/dashboard/utils/lifecycleStages.d.ts +53 -0
  65. package/src/app/dashboard/utils/reportHelpers.d.ts +9 -0
  66. package/src/app/gatewayHome/components/ChecklistStep.d.ts +15 -0
  67. package/src/app/gatewayHome/components/CreditBalanceCard.d.ts +6 -0
  68. package/src/app/gatewayHome/components/MessageStats.d.ts +5 -0
  69. package/src/app/gatewayHome/components/SetupChecklist.d.ts +11 -0
  70. package/src/app/gatewayHome/components/console/QuickstartConsole.d.ts +11 -0
  71. package/src/app/gatewayHome/components/console/RunRequestBar.d.ts +15 -0
  72. package/src/app/gatewayHome/components/console/consoleStyles.d.ts +77 -0
  73. package/src/app/gatewayHome/components/steps/ApiKeyStepBody.d.ts +8 -0
  74. package/src/app/gatewayHome/components/steps/ChannelStepBody.d.ts +3 -0
  75. package/src/app/gatewayHome/components/steps/MetaStepBody.d.ts +6 -0
  76. package/src/app/gatewayHome/components/steps/WebhookStepBody.d.ts +7 -0
  77. package/src/app/gatewayHome/components/styles.d.ts +29 -0
  78. package/src/app/gatewayHome/config/constants.d.ts +22 -0
  79. package/src/app/gatewayHome/hooks/useGatewaySetup.d.ts +59 -0
  80. package/src/app/gatewayHome/hooks/useMessageStats.d.ts +17 -0
  81. package/src/app/gatewayHome/hooks/useQuickstartRequest.d.ts +31 -0
  82. package/src/app/gatewayHome/hooks/useSendableTemplates.d.ts +9 -0
  83. package/src/app/gatewayHome/pages/GatewayHomePage.d.ts +1 -0
  84. package/src/app/gatewayHome/types/index.d.ts +21 -0
  85. package/src/app/gatewayHome/utils/buildRequestBody.d.ts +7 -0
  86. package/src/app/gatewayHome/utils/buildSnippet.d.ts +9 -0
  87. package/src/app/gatewayHome/utils/sendTestMessage.d.ts +3 -0
  88. package/src/app/gatewayHome/utils/setupStorage.d.ts +8 -0
  89. package/src/app/gatewayHome/utils/templateHasParameters.d.ts +6 -0
  90. package/src/app/generic/components/HeaderImageInput.d.ts +3 -1
  91. package/src/app/generic/components/MessagePreview.d.ts +1 -1
  92. package/src/app/generic/components/PreviewHeaderDocument.d.ts +5 -0
  93. package/src/app/generic/hooks/usePaginatedQuery.d.ts +1 -0
  94. package/src/app/generic/utils/chunkErrorRecovery.d.ts +7 -0
  95. package/src/app/generic/utils/onesignal.d.ts +13 -0
  96. package/src/app/inbox/calls/useIncomingCallAlerts.d.ts +2 -0
  97. package/src/app/inbox/components/Calls/ActiveCallControls.d.ts +6 -0
  98. package/src/app/inbox/components/Calls/IncomingCallBanner.d.ts +6 -0
  99. package/src/app/inbox/components/Chat/ChatContent.d.ts +3 -1
  100. package/src/app/inbox/components/Chat/QuickReplyEmpty.d.ts +5 -0
  101. package/src/app/inbox/components/Chat/QuickReplyPickerMenu.d.ts +2 -2
  102. package/src/app/inbox/components/NewDetails/ClientSection.d.ts +3 -1
  103. package/src/app/inbox/components/NewDetails/ContactActionsMenu.d.ts +9 -0
  104. package/src/app/inbox/components/NewDetails/SuggestedAssignee.d.ts +7 -0
  105. package/src/app/inbox/components/NewDetails/SuggestedStage.d.ts +13 -0
  106. package/src/app/inbox/components/NewDetails/SuggestedTags.d.ts +18 -0
  107. package/src/app/inbox/components/NewDetails/SuggestionItems.d.ts +16 -0
  108. package/src/app/inbox/components/NewDetails/UserHeader.d.ts +2 -1
  109. package/src/app/inbox/components/Shared/SharedStyle.d.ts +8 -0
  110. package/src/app/inbox/constants/index.d.ts +1 -0
  111. package/src/app/inbox/context/CallSession.d.ts +16 -0
  112. package/src/app/inbox/context/SuggestionsContext.d.ts +25 -0
  113. package/src/app/inbox/hooks/useAgentSuggestions.d.ts +20 -0
  114. package/src/app/inbox/hooks/useApplySuggestion.d.ts +18 -0
  115. package/src/app/inbox/hooks/useConvEnhance.d.ts +3 -1
  116. package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +37 -0
  117. package/src/app/inbox/hooks/useIncomingCallAlerts.d.ts +2 -0
  118. package/src/app/inbox/hooks/useNewSortedEvents.d.ts +1 -1
  119. package/src/app/inbox/hooks/useQuickReplyPicker.d.ts +5 -3
  120. package/src/app/inbox/pages/InboxPage.d.ts +1 -1
  121. package/src/app/inbox/utils/callUi.d.ts +25 -0
  122. package/src/app/inbox/utils/convAssistStorage.d.ts +9 -4
  123. package/src/app/inbox/utils/convSuggestions.d.ts +59 -0
  124. package/src/app/inbox/utils/convSuggestionsStorage.d.ts +20 -0
  125. package/src/app/inbox/utils/convs.d.ts +4 -0
  126. package/src/app/inbox/utils/sounds.d.ts +4 -0
  127. package/src/app/layout/components/LogoutPopin.d.ts +6 -3
  128. package/src/app/layout/components/language/index.d.ts +5 -1
  129. package/src/app/layout/constants/index.d.ts +35 -0
  130. package/src/app/layout/hooks/useCallsEnabled.d.ts +1 -0
  131. package/src/app/layout/hooks/useGatewayPlanEnabled.d.ts +5 -0
  132. package/src/app/layout/hooks/useWebchatEnabled.d.ts +5 -0
  133. package/src/app/managemnet/components/channels/ChannelItem.d.ts +2 -1
  134. package/src/app/managemnet/components/channels/ChannelSettingsDrawer.d.ts +15 -0
  135. package/src/app/managemnet/components/channels/ShareChannelLinkDialog.d.ts +11 -0
  136. package/src/app/managemnet/components/channels/WebChatSnippetBlock.d.ts +7 -0
  137. package/src/app/managemnet/config/webchat.d.ts +5 -0
  138. package/src/app/managemnet/config/webhookDefinition.d.ts +4 -0
  139. package/src/app/managemnet/pages/connectChannel/ConnectChannel.d.ts +2 -0
  140. package/src/app/managemnet/pages/generalSettings/NoiseFilterSettings.d.ts +8 -0
  141. package/src/app/managemnet/pages/generalSettings/WritingAssistanceSettings.d.ts +9 -0
  142. package/src/app/managemnet/pages/generalSettings/holidayConstants.d.ts +5 -0
  143. package/src/app/managemnet/pages/generalSettings/noiseFilterConstants.d.ts +24 -0
  144. package/src/app/managemnet/pages/generalSettings/writingConstants.d.ts +6 -0
  145. package/src/app/managemnet/utils/webChatSnippet.d.ts +2 -0
  146. package/src/app/onboarding/components/OnboardingView.d.ts +3 -1
  147. package/src/app/onboarding/components/useOnboardingChecklist.d.ts +12 -9
  148. package/src/app/onboarding/constants/workspaceProfileOptions.d.ts +30 -0
  149. package/src/app/onboarding/utils/onboardingApi.d.ts +23 -0
  150. package/src/app/onboarding/utils/onboardingChecklistStorage.d.ts +42 -49
  151. package/src/app/resources/components/Agents/CreateAgent.d.ts +7 -3
  152. package/src/app/resources/components/Integrations/ChannelDialogLayout.d.ts +6 -1
  153. package/src/app/resources/components/Integrations/RenderCorrectIntegrationFlow.d.ts +3 -1
  154. package/src/app/resources/components/Integrations/WebChat/index.d.ts +8 -0
  155. package/src/app/resources/components/Integrations/WhatsApp/index.d.ts +1 -0
  156. package/src/app/resources/components/ListResources/Utils.d.ts +1 -0
  157. package/src/app/resources/hooks/useFBPagesHook.d.ts +4 -2
  158. package/src/app/resources/hooks/useWabaHook.d.ts +5 -4
  159. package/src/app/resources/utils/channelSetupTracking.d.ts +21 -0
  160. package/src/app/resources/utils/facebookSdk.d.ts +11 -0
  161. package/src/app/subscriptions/components/NewSubscription/OnboardingStepper.d.ts +2 -2
  162. package/src/app/subscriptions/components/NewSubscription/SubscriptionName.d.ts +2 -0
  163. package/src/app/subscriptions/components/NewSubscription/SubscriptionSuccess.d.ts +3 -1
  164. package/src/app/subscriptions/components/NewSubscription/WorkspaceProfile.d.ts +18 -0
  165. package/src/app/subscriptions/components/NewSubscription/WorkspaceStepLayout.d.ts +5 -2
  166. package/src/app/subscriptions/components/Plans/PlanCard.d.ts +3 -1
  167. package/src/app/subscriptions/components/Plans/ShowcasePlans.d.ts +3 -1
  168. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionCreditsCard.d.ts +5 -0
  169. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfile.d.ts +0 -1
  170. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +0 -1
  171. package/src/app/subscriptions/components/SubscriptionSettings/index.d.ts +17 -2
  172. package/src/app/subscriptions/constants/Plans.d.ts +2 -1
  173. package/src/app/subscriptions/hooks/useWorkspaceProfileSubmit.d.ts +12 -0
  174. package/src/app/subscriptions/utils/estimateUpgradeProration.d.ts +7 -0
  175. package/src/app/subscriptions/utils/newWorkspaceContext.d.ts +8 -0
  176. package/src/assets/locales/translations.d.ts +444 -0
  177. package/src/config/constants.d.ts +1 -2
  178. package/src/environments/environment.dev.d.ts +2 -0
  179. package/src/environments/types.d.ts +2 -0
  180. package/src/graphql.autogenerated.d.ts +2718 -22
  181. package/src/graphql.billing.autogenerated.d.ts +193 -0
  182. package/src/lib/index.d.ts +1 -0
  183. package/src/testUtils/bcUiMock.d.ts +16 -0
  184. package/src/utils/colorPool.d.ts +1 -2
  185. package/src/utils/getActiveChannelList.d.ts +6 -1
  186. package/src/utils/globalHelper.d.ts +22 -0
  187. package/src/app/contact/components/ImportProgressDialog.d.ts +0 -13
  188. package/src/app/managemnet/components/channels/EditChannelDialog.d.ts +0 -11
  189. package/src/app/onboarding/utils/onboardingChecklistPersistence.d.ts +0 -18
@@ -0,0 +1,18 @@
1
+ import { type WorkspaceProfileOptions, type WorkspaceProfileValues } from '../../../onboarding/constants/workspaceProfileOptions';
2
+ type WorkspaceProfileProps = {
3
+ onSubmit: (values: WorkspaceProfileValues) => void;
4
+ /** Lets the caller skip ahead; the answers are optional, not a gate on checkout. */
5
+ onSkip: () => void;
6
+ submitting?: boolean;
7
+ /** False when the user already has a workspace: creating another one is not an onboarding flow. */
8
+ showStepper?: boolean;
9
+ /** Overrides the onboardingOptions query; used by tests and stories. */
10
+ options?: WorkspaceProfileOptions;
11
+ };
12
+ /**
13
+ * Collected between naming the workspace and checkout. Every answer is optional — this is
14
+ * segmentation data, not something the product needs to run, so it must never block a user
15
+ * from reaching checkout.
16
+ */
17
+ export declare const WorkspaceProfile: ({ onSubmit, onSkip, submitting, showStepper, options, }: WorkspaceProfileProps) => import("@emotion/react/jsx-runtime").JSX.Element;
18
+ export default WorkspaceProfile;
@@ -2,10 +2,13 @@ import { ReactNode } from 'react';
2
2
  import { OnboardingStepKey, OnboardingStepStatus } from './OnboardingStepper';
3
3
  type WorkspaceStepLayoutProps = {
4
4
  statuses?: Partial<Record<OnboardingStepKey, OnboardingStepStatus>>;
5
- illustration: string;
5
+ /** Hidden when the user already owns a workspace — the stepper only frames first-time onboarding. */
6
+ showStepper?: boolean;
7
+ /** Optional: the personalization step is a form-only screen. */
8
+ illustration?: string;
6
9
  title: string;
7
10
  subtitle?: string;
8
11
  children?: ReactNode;
9
12
  };
10
- export declare const WorkspaceStepLayout: ({ statuses, illustration, title, subtitle, children, }: WorkspaceStepLayoutProps) => import("@emotion/react/jsx-runtime").JSX.Element;
13
+ export declare const WorkspaceStepLayout: ({ statuses, showStepper, illustration, title, subtitle, children, }: WorkspaceStepLayoutProps) => import("@emotion/react/jsx-runtime").JSX.Element;
11
14
  export default WorkspaceStepLayout;
@@ -9,5 +9,7 @@ export type PlanCardProps = {
9
9
  loading?: boolean;
10
10
  processing?: boolean;
11
11
  available?: boolean;
12
+ /** Stable hook for tests (e.g. `plan-choose-free`). */
13
+ testId?: string;
12
14
  };
13
- export declare function PlanCard({ name, price, subtitle, features, isCurrent, isPopular, onChoose, loading, processing, available, }: PlanCardProps): import("@emotion/react/jsx-runtime").JSX.Element;
15
+ export declare function PlanCard({ name, price, subtitle, features, isCurrent, isPopular, onChoose, loading, processing, available, testId, }: PlanCardProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -3,6 +3,8 @@ import { PlanType, Term } from '../../../../graphql.billing.autogenerated';
3
3
  type ShowcasePlansProps = {
4
4
  onPlanPicked: (plan: PlanTypes, term: Term, includeAi: boolean) => void;
5
5
  disableFreePlan?: boolean;
6
+ /** Show prepaid WhatsApp API Gateway plan (free → gateway only). */
7
+ showGatewayPlan?: boolean;
6
8
  currentPlanType?: PlanType | null;
7
9
  /** The billing term the user is currently subscribed to */
8
10
  currentTerm?: Term | null;
@@ -13,5 +15,5 @@ type ShowcasePlansProps = {
13
15
  /** Force the Crumby AI plan toggle on (e.g. deep-link from upgrade CTA). */
14
16
  defaultIncludeAi?: boolean;
15
17
  };
16
- export declare const ShowcasePlans: ({ onPlanPicked, disableFreePlan, currentPlanType, currentTerm, selectingPlan, processing, loadingPlanType, defaultIncludeAi, }: ShowcasePlansProps) => import("@emotion/react/jsx-runtime").JSX.Element;
18
+ export declare const ShowcasePlans: ({ onPlanPicked, disableFreePlan, showGatewayPlan, currentPlanType, currentTerm, selectingPlan, processing, loadingPlanType, defaultIncludeAi, }: ShowcasePlansProps) => import("@emotion/react/jsx-runtime").JSX.Element;
17
19
  export default ShowcasePlans;
@@ -0,0 +1,5 @@
1
+ type SubscriptionCreditsCardProps = {
2
+ workspaceId: number;
3
+ };
4
+ declare const SubscriptionCreditsCard: ({ workspaceId }: SubscriptionCreditsCardProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
5
+ export default SubscriptionCreditsCard;
@@ -4,7 +4,6 @@ type SubscriptionProfileRouteProps = {
4
4
  subscriptionAccountId: string;
5
5
  subscriptionCreateDate: string;
6
6
  onUpdate: () => any;
7
- updateCompany: (id: string, name: string) => any;
8
7
  config: any;
9
8
  isEditing: boolean;
10
9
  onSave?: (name: string) => Promise<void>;
@@ -5,7 +5,6 @@ type SubscriptionProfileRouteProps = {
5
5
  refetchUsers: any;
6
6
  loadingUsers: boolean;
7
7
  inviteUser: (companyId: number, Email: string, actorEmail: string) => Promise<unknown>;
8
- removeUserFromCompany: (companyId: number, userId: string) => Promise<unknown>;
9
8
  };
10
9
  export declare const SubscriptionUsers: (props: SubscriptionProfileRouteProps) => import("@emotion/react/jsx-runtime").JSX.Element;
11
10
  declare const _default: any;
@@ -4,11 +4,26 @@ export type WorkspaceCompany = {
4
4
  AccountId?: string | null;
5
5
  CreateDate?: string | null;
6
6
  };
7
+ export type InviteStatus = 'PENDING' | 'APPROVED';
8
+ /** Legacy Membership user shape still expected by SubscriptionUsers / agent pickers. */
9
+ export type CompanyUserRow = {
10
+ Id: string;
11
+ Email?: string | null;
12
+ UserName?: string | null;
13
+ IsEnabled?: boolean;
14
+ inviteStatus?: InviteStatus;
15
+ };
16
+ interface Props {
17
+ companies: WorkspaceCompany[];
18
+ subscriptionId?: string | number;
19
+ refetchCompanies: () => Promise<unknown>;
20
+ loadingCompanies?: boolean;
21
+ }
7
22
  export declare enum TABS {
8
23
  PROFILE = "PROFILE",
9
24
  USERS = "USERS",
10
25
  INTEGRATIONS = "INTEGRATIONS",
11
26
  BILLING = "BILLING"
12
27
  }
13
- declare const _default: any;
14
- export default _default;
28
+ declare const SubscriptionSettings: ({ subscriptionId, refetchCompanies, companies, loadingCompanies, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
29
+ export default SubscriptionSettings;
@@ -15,7 +15,8 @@ export declare enum PlanTypes {
15
15
  AUTOMATE = "automate",
16
16
  AUTOMATE_PLUS = "automate_plus",
17
17
  AUTOMATE_MAX = "automate_max",
18
- CUSTOM = "custom"
18
+ CUSTOM = "custom",
19
+ GATEWAY = "gateway"
19
20
  }
20
21
  export declare const PlanPrices: {
21
22
  [key in PlanTypes]: number;
@@ -0,0 +1,12 @@
1
+ import type { WorkspaceProfileValues } from '../../onboarding/constants/workspaceProfileOptions';
2
+ /**
3
+ * Submits the company profile answers collected between naming a workspace and checkout.
4
+ *
5
+ * Failures are swallowed on purpose: these answers are segmentation data, so losing them
6
+ * must never keep a user from reaching checkout.
7
+ */
8
+ export declare function useWorkspaceProfileSubmit(): {
9
+ submitProfile: (workspaceId: number, values: WorkspaceProfileValues) => Promise<void>;
10
+ submitting: boolean;
11
+ };
12
+ export default useWorkspaceProfileSubmit;
@@ -5,6 +5,13 @@ export type UpgradeProrationEstimate = {
5
5
  chargeAmount: number;
6
6
  remainingDays: number;
7
7
  };
8
+ /** True when the target plan/term costs more than the current one for the billing period. */
9
+ export declare function isHigherPricedPlan(params: {
10
+ currentPlanType: PlanType;
11
+ currentTerm: Term;
12
+ targetPlanType: PlanType;
13
+ targetTerm: Term;
14
+ }): boolean;
8
15
  /**
9
16
  * Estimates Polar-style mid-cycle upgrade charge:
10
17
  * (newPeriodPrice − currentPeriodPrice) × remainingFraction, floored at 0.
@@ -1,5 +1,13 @@
1
1
  /** Query flag for flows that create a workspace (plan pick, checkout) without using the active workspace context. */
2
2
  export declare const NEW_WORKSPACE_QUERY_KEY = "newWorkspace";
3
3
  export declare function isCreatingNewWorkspace(pathname: string, search: string): boolean;
4
+ /**
5
+ * The workspace the create page is working on: its id once created (the page keeps it in the URL),
6
+ * null before that, and undefined on any other page. Until the new workspace exists, the active
7
+ * context still points at the previously selected one, so nothing should present that as current.
8
+ */
9
+ export declare function getCreatePageWorkspaceId(pathname: string, search: string): number | null | undefined;
10
+ /** True on the create page until the new workspace exists. */
11
+ export declare function isNamingNewWorkspace(pathname: string, search: string): boolean;
4
12
  export declare function newWorkspaceSearch(): string;
5
13
  export declare function buildNewWorkspaceSubscriptionPath(): string;