@iblai/mcp 1.3.4 → 1.4.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/resources/packages-playwright.d.ts.map +1 -1
- package/dist/resources/packages-playwright.js +47 -0
- package/dist/resources/packages-playwright.js.map +1 -1
- package/dist/resources/web-containers.d.ts.map +1 -1
- package/dist/resources/web-containers.js +30 -0
- package/dist/resources/web-containers.js.map +1 -1
- package/dist/resources/web-utils.d.ts.map +1 -1
- package/dist/resources/web-utils.js +36 -0
- package/dist/resources/web-utils.js.map +1 -1
- package/dist/tools/component-info.d.ts.map +1 -1
- package/dist/tools/component-info.js +154 -72
- package/dist/tools/component-info.js.map +1 -1
- package/dist/tools/hook-info.d.ts.map +1 -1
- package/dist/tools/hook-info.js +45 -0
- package/dist/tools/hook-info.js.map +1 -1
- package/dist/tools/playwright-helper-info.d.ts.map +1 -1
- package/dist/tools/playwright-helper-info.js +395 -0
- package/dist/tools/playwright-helper-info.js.map +1 -1
- package/package.json +1 -1
|
@@ -1391,6 +1391,88 @@ interface PaywallModalProps {
|
|
|
1391
1391
|
Wires \`useCreateCheckoutMutation\` from \`@iblai/data-layer\` to redirect to Stripe Checkout. The grid auto-sizes for 1, 2, 3, or 4+ prices.
|
|
1392
1392
|
|
|
1393
1393
|
**File Location**: \`packages/web-containers/src/components/modals/paywall-modal.tsx\``,
|
|
1394
|
+
UpgradePackageModal: `# UpgradePackageModal Component
|
|
1395
|
+
|
|
1396
|
+
Centered upgrade dialog presenting a "free upgrade" CTA — typically used to nudge users on the Free plan into the premium tier with no credit-card friction. Wires the \`useStripeUpgrade\` hook (from \`@iblai/iblai-js/web-utils\`) to fetch a Stripe Pricing Page session and redirect to the resolved \`free\` checkout link.
|
|
1397
|
+
|
|
1398
|
+
\`\`\`typescript
|
|
1399
|
+
import { UpgradePackageModal } from '@iblai/iblai-js/web-containers';
|
|
1400
|
+
|
|
1401
|
+
interface UpgradePackageModalProps {
|
|
1402
|
+
open: boolean;
|
|
1403
|
+
onClose: () => void;
|
|
1404
|
+
redirectUrl: string; // success_url passed to Stripe
|
|
1405
|
+
sourcePlatformKey: string; // current tenant key
|
|
1406
|
+
mainPlatformKey: string; // main IBL platform key
|
|
1407
|
+
currentUserEmail: string; // prefills locked_prefilled_email
|
|
1408
|
+
title?: string; // default: "Subscribe to unlock full features"
|
|
1409
|
+
description?: string;
|
|
1410
|
+
ctaLabel?: string; // default: "Upgrade for free"
|
|
1411
|
+
features?: string[]; // bulleted feature list inside the dialog
|
|
1412
|
+
footerNote?: string; // default: "No credit card required. Cancel anytime."
|
|
1413
|
+
className?: string;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
<UpgradePackageModal
|
|
1417
|
+
open={isUpgradeOpen}
|
|
1418
|
+
onClose={() => setIsUpgradeOpen(false)}
|
|
1419
|
+
redirectUrl={\`\${window.location.origin}/billing/success\`}
|
|
1420
|
+
sourcePlatformKey={tenantKey}
|
|
1421
|
+
mainPlatformKey={mainPlatformKey}
|
|
1422
|
+
currentUserEmail={user.email}
|
|
1423
|
+
/>
|
|
1424
|
+
\`\`\`
|
|
1425
|
+
|
|
1426
|
+
The CTA calls \`handleUpgrade('free')\` from \`useStripeUpgrade\` — it resolves the Stripe pricing-page session, picks the \`free\` payment link, appends \`locked_prefilled_email\` and \`client_reference_id\`, and redirects via \`window.location.href\`. Use \`UpgradePackageModal\` for the "free upgrade" path, and \`PaywallModal\` for explicit paid-tier checkout flows.
|
|
1427
|
+
|
|
1428
|
+
**File Location**: \`packages/web-containers/src/components/modals/upgrade-package-modal.tsx\``,
|
|
1429
|
+
CreditBalance: `# CreditBalance Component
|
|
1430
|
+
|
|
1431
|
+
Plan-aware credit balance dropdown that lives in the navbar. Surfaces remaining/consumed credits, reset date, the current plan badge (Free / Trial / Premium), and the auto-recharge configuration; the action button at the bottom adapts to the user's plan and payment-method state.
|
|
1432
|
+
|
|
1433
|
+
\`\`\`typescript
|
|
1434
|
+
import { CreditBalance } from '@iblai/iblai-js/web-containers';
|
|
1435
|
+
|
|
1436
|
+
interface CreditBalanceProps {
|
|
1437
|
+
tenant: string; // tenant/platform key
|
|
1438
|
+
username: string;
|
|
1439
|
+
mainPlatformKey: string; // main IBL platform key (for upgrade flow)
|
|
1440
|
+
currentUserEmail: string;
|
|
1441
|
+
redirectUrl: string; // success_url for Stripe upgrade
|
|
1442
|
+
className?: string;
|
|
1443
|
+
enabled?: boolean; // default: true — gate via tenant.show_paywall
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
// Typically gated on the current tenant's \`show_paywall\` flag
|
|
1447
|
+
<CreditBalance
|
|
1448
|
+
tenant={currentTenant.key}
|
|
1449
|
+
username={username}
|
|
1450
|
+
mainPlatformKey={mainPlatformKey}
|
|
1451
|
+
currentUserEmail={user.email}
|
|
1452
|
+
redirectUrl={window.location.href}
|
|
1453
|
+
enabled={Boolean(currentTenant.show_paywall)}
|
|
1454
|
+
/>
|
|
1455
|
+
\`\`\`
|
|
1456
|
+
|
|
1457
|
+
**Behavior:**
|
|
1458
|
+
- Renders nothing when \`enabled\` is false or \`tenant\` is empty.
|
|
1459
|
+
- Trigger button has \`data-testid="credit-balance-trigger"\` (icon-only). Status dot turns amber at \`balance ≤ 10\` ("low") and red at \`balance ≤ 1\` ("critical"); hidden when "healthy".
|
|
1460
|
+
- Dropdown panel has \`data-testid="credit-balance-panel"\` and contains a plan badge with \`data-testid="credit-balance-plan-badge"\`.
|
|
1461
|
+
- Action button rules:
|
|
1462
|
+
- **Free** (or \`free_trial\`): single "Upgrade Plan" button (gradient + \`Sparkles\` icon) — calls \`useStripeUpgrade.handleUpgrade('premium')\`.
|
|
1463
|
+
- **Premium with payment method**: pair of "Manage Usage" and "Add Credits" buttons (open \`AutoRechargeModal\` and \`AddCreditsModal\` respectively).
|
|
1464
|
+
- **Premium without payment method**: single "Manage Billing" button — opens the Stripe customer portal in \`payment_method_update\` flow via \`useCreateStripeCustomerPortalMutation\`.
|
|
1465
|
+
- Auto Recharge section only renders when there is a payment method on file AND plan is not Free.
|
|
1466
|
+
- Re-fetches billing info on every dropdown open via \`refetch()\` from \`useGetAccountBillingInfoQuery\`.
|
|
1467
|
+
|
|
1468
|
+
**Data dependencies:**
|
|
1469
|
+
- \`useGetAccountBillingInfoQuery({ platform_key })\` — credits, plan, payment method, auto-recharge settings, \`free_trial\` flag.
|
|
1470
|
+
- \`useCreateStripeCustomerPortalMutation\` — for the "Manage Billing" path.
|
|
1471
|
+
- \`useStripeUpgrade\` (web-utils) — for the "Upgrade Plan" path.
|
|
1472
|
+
|
|
1473
|
+
**Related:** \`UpgradePackageModal\`, \`AutoRechargeModal\`, \`AddCreditsModal\`, \`useStripeUpgrade\`, \`useGetAccountBillingInfoQuery\`.
|
|
1474
|
+
|
|
1475
|
+
**File Location**: \`packages/web-containers/src/components/credit-balance.tsx\``,
|
|
1394
1476
|
AnalyticsMonetizationStats: `# AnalyticsMonetizationStats Component
|
|
1395
1477
|
|
|
1396
1478
|
Analytics dashboard tab showing monetization KPIs (revenue, sales count, active paywalls, subscriber count), distribution charts, and paginated subscriber/paywall tables.
|
|
@@ -2587,8 +2669,8 @@ interface AgentSettingsContextValue {
|
|
|
2587
2669
|
enableRBAC={config.enableRBAC()}
|
|
2588
2670
|
executeGatedAction={(fn) => executeWithTrialCheck(fn)}
|
|
2589
2671
|
>
|
|
2590
|
-
<
|
|
2591
|
-
<
|
|
2672
|
+
<AgentSettingsTab ... />
|
|
2673
|
+
<AgentLLMTab ... />
|
|
2592
2674
|
</AgentSettingsProvider>
|
|
2593
2675
|
\`\`\`
|
|
2594
2676
|
|
|
@@ -2597,15 +2679,15 @@ The \`useAgentSettings()\` hook is also exported for building custom tabs that r
|
|
|
2597
2679
|
> **Import from \`@iblai/iblai-js/web-containers/next\`** — requires Next.js
|
|
2598
2680
|
|
|
2599
2681
|
**File Location**: \`packages/web-containers/src/components/modals/edit-mentor-modal/agent-settings-context.tsx\``,
|
|
2600
|
-
|
|
2682
|
+
AgentSettingsTab: `# AgentSettingsTab Component
|
|
2601
2683
|
|
|
2602
2684
|
Agent/mentor settings form with name, description, category, visibility, toggles, image upload, and copy/delete sub-modals. Reads identity from AgentSettingsProvider context — must be wrapped by it.
|
|
2603
2685
|
|
|
2604
2686
|
\`\`\`typescript
|
|
2605
|
-
import {
|
|
2606
|
-
import type {
|
|
2687
|
+
import { AgentSettingsTab } from '@iblai/iblai-js/web-containers/next';
|
|
2688
|
+
import type { AgentSettingsTabProps, DeepPartial, SettingsTabLabels } from '@iblai/iblai-js/web-containers/next';
|
|
2607
2689
|
|
|
2608
|
-
interface
|
|
2690
|
+
interface AgentSettingsTabProps {
|
|
2609
2691
|
onSettingsSaved?: (mentor: unknown) => void;
|
|
2610
2692
|
onMentorDeleted?: (deletedMentorId: string) => void;
|
|
2611
2693
|
tenants: CopyMentorTenant[];
|
|
@@ -2619,7 +2701,7 @@ interface SettingsTabProps {
|
|
|
2619
2701
|
}
|
|
2620
2702
|
|
|
2621
2703
|
// With the default "agent" labels:
|
|
2622
|
-
<
|
|
2704
|
+
<AgentSettingsTab
|
|
2623
2705
|
tenants={tenants}
|
|
2624
2706
|
onMentorDeleted={handleDelete}
|
|
2625
2707
|
onMentorCopied={handleCopy}
|
|
@@ -2628,7 +2710,7 @@ interface SettingsTabProps {
|
|
|
2628
2710
|
// With custom "mentor" labels:
|
|
2629
2711
|
import { MENTOR_SETTINGS_TAB_LABELS } from './mentor-labels';
|
|
2630
2712
|
|
|
2631
|
-
<
|
|
2713
|
+
<AgentSettingsTab
|
|
2632
2714
|
tenants={tenants}
|
|
2633
2715
|
onMentorDeleted={handleDelete}
|
|
2634
2716
|
onMentorCopied={handleCopy}
|
|
@@ -2641,15 +2723,15 @@ The label system uses typed nested-object overrides. The package ships \`AGENT_S
|
|
|
2641
2723
|
> **Import from \`@iblai/iblai-js/web-containers/next\`** — requires Next.js and AgentSettingsProvider wrapper
|
|
2642
2724
|
|
|
2643
2725
|
**File Location**: \`packages/web-containers/src/components/modals/edit-mentor-modal/tabs/settings-tab.tsx\``,
|
|
2644
|
-
|
|
2726
|
+
AgentLLMTab: `# AgentLLMTab Component
|
|
2645
2727
|
|
|
2646
2728
|
LLM provider selection grid with search, provider cards, and a modal for choosing specific models. Reads identity from AgentSettingsProvider context — must be wrapped by it.
|
|
2647
2729
|
|
|
2648
2730
|
\`\`\`typescript
|
|
2649
|
-
import {
|
|
2650
|
-
import type {
|
|
2731
|
+
import { AgentLLMTab } from '@iblai/iblai-js/web-containers/next';
|
|
2732
|
+
import type { AgentLLMTabProps, LLMProviderDetails, DeepPartial, LLMTabLabels } from '@iblai/iblai-js/web-containers/next';
|
|
2651
2733
|
|
|
2652
|
-
interface
|
|
2734
|
+
interface AgentLLMTabProps {
|
|
2653
2735
|
showConfigurationHeader?: boolean;
|
|
2654
2736
|
getLLMProviderDetails: (providerName: string, llmName?: string) => LLMProviderDetails;
|
|
2655
2737
|
labels?: DeepPartial<LLMTabLabels>;
|
|
@@ -2660,7 +2742,7 @@ interface LLMProviderDetails {
|
|
|
2660
2742
|
name: string;
|
|
2661
2743
|
}
|
|
2662
2744
|
|
|
2663
|
-
<
|
|
2745
|
+
<AgentLLMTab
|
|
2664
2746
|
getLLMProviderDetails={(name) => ({
|
|
2665
2747
|
name: name.charAt(0).toUpperCase() + name.slice(1),
|
|
2666
2748
|
logo: \`/llm-\${name}-provider.png\`,
|
|
@@ -2674,25 +2756,25 @@ interface LLMProviderDetails {
|
|
|
2674
2756
|
> **Import from \`@iblai/iblai-js/web-containers/next\`** — requires Next.js and AgentSettingsProvider wrapper
|
|
2675
2757
|
|
|
2676
2758
|
**File Location**: \`packages/web-containers/src/components/modals/edit-mentor-modal/tabs/llm-tab.tsx\``,
|
|
2677
|
-
|
|
2759
|
+
AgentToolsTab: `# AgentToolsTab Component
|
|
2678
2760
|
|
|
2679
2761
|
Tool toggle grid for enabling/disabling tools and integrations on an agent. Reads identity from AgentSettingsProvider context — must be wrapped by it.
|
|
2680
2762
|
|
|
2681
2763
|
\`\`\`typescript
|
|
2682
|
-
import {
|
|
2683
|
-
import type {
|
|
2764
|
+
import { AgentToolsTab } from '@iblai/iblai-js/web-containers/next';
|
|
2765
|
+
import type { AgentToolsTabProps, ToolsTabLabels, DeepPartial } from '@iblai/iblai-js/web-containers/next';
|
|
2684
2766
|
|
|
2685
|
-
interface
|
|
2767
|
+
interface AgentToolsTabProps {
|
|
2686
2768
|
labels?: DeepPartial<ToolsTabLabels>;
|
|
2687
2769
|
}
|
|
2688
2770
|
|
|
2689
2771
|
// With the default "agent" labels:
|
|
2690
|
-
<
|
|
2772
|
+
<AgentToolsTab />
|
|
2691
2773
|
|
|
2692
2774
|
// With custom "mentor" labels:
|
|
2693
2775
|
import { MENTOR_TOOLS_TAB_LABELS } from './mentor-tools-labels';
|
|
2694
2776
|
|
|
2695
|
-
<
|
|
2777
|
+
<AgentToolsTab labels={MENTOR_TOOLS_TAB_LABELS} />
|
|
2696
2778
|
\`\`\`
|
|
2697
2779
|
|
|
2698
2780
|
Each tool row has a Switch that toggles the tool slug on the mentor via \`useEditMentorMutation\`. Permissions are gated through \`WithFormPermissions\` using the \`enableRBAC\` flag from context.
|
|
@@ -2700,25 +2782,25 @@ Each tool row has a Switch that toggles the tool slug on the mentor via \`useEdi
|
|
|
2700
2782
|
> **Import from \`@iblai/iblai-js/web-containers/next\`** — requires Next.js and AgentSettingsProvider wrapper
|
|
2701
2783
|
|
|
2702
2784
|
**File Location**: \`packages/web-containers/src/components/modals/edit-mentor-modal/tabs/tools-tab.tsx\``,
|
|
2703
|
-
|
|
2785
|
+
AgentMemoryTab: `# AgentMemoryTab Component
|
|
2704
2786
|
|
|
2705
2787
|
Memory settings tab with an enable toggle and a ManageMemories CRUD subsection (filter by user/date range, add/edit/delete memories, bulk delete). Reads identity from AgentSettingsProvider context — must be wrapped by it.
|
|
2706
2788
|
|
|
2707
2789
|
\`\`\`typescript
|
|
2708
|
-
import {
|
|
2709
|
-
import type {
|
|
2790
|
+
import { AgentMemoryTab } from '@iblai/iblai-js/web-containers/next';
|
|
2791
|
+
import type { AgentMemoryTabProps, MemoryTabLabels, DeepPartial } from '@iblai/iblai-js/web-containers/next';
|
|
2710
2792
|
|
|
2711
|
-
interface
|
|
2793
|
+
interface AgentMemoryTabProps {
|
|
2712
2794
|
labels?: DeepPartial<MemoryTabLabels>;
|
|
2713
2795
|
}
|
|
2714
2796
|
|
|
2715
2797
|
// With the default "agent" labels:
|
|
2716
|
-
<
|
|
2798
|
+
<AgentMemoryTab />
|
|
2717
2799
|
|
|
2718
2800
|
// With custom "mentor" labels:
|
|
2719
2801
|
import { MENTOR_MEMORY_TAB_LABELS } from './mentor-memory-labels';
|
|
2720
2802
|
|
|
2721
|
-
<
|
|
2803
|
+
<AgentMemoryTab labels={MENTOR_MEMORY_TAB_LABELS} />
|
|
2722
2804
|
\`\`\`
|
|
2723
2805
|
|
|
2724
2806
|
The enable toggle mutates \`enable_memory_component\` on mentor settings. The ManageMemories subsection uses \`useGetMentorMemoriesQuery\`, \`useCreateMentorMemoryMutation\`, \`useUpdateMentorMemoryMutation\`, \`useDeleteMentorMemoryMutation\`, and \`useGetMemoryCategoriesAdminQuery\` to manage memories by category.
|
|
@@ -2726,21 +2808,21 @@ The enable toggle mutates \`enable_memory_component\` on mentor settings. The Ma
|
|
|
2726
2808
|
> **Import from \`@iblai/iblai-js/web-containers/next\`** — requires Next.js and AgentSettingsProvider wrapper
|
|
2727
2809
|
|
|
2728
2810
|
**File Location**: \`packages/web-containers/src/components/modals/edit-mentor-modal/tabs/memory-tab.tsx\``,
|
|
2729
|
-
|
|
2811
|
+
AgentSafetyTab: `# AgentSafetyTab Component
|
|
2730
2812
|
|
|
2731
2813
|
Safety and moderation settings with four prompt cards (Moderation Prompt, Safety Prompt, Moderation Response, Safety Response) and optional Flagged Prompts viewer. Reads identity from AgentSettingsProvider context — must be wrapped by it.
|
|
2732
2814
|
|
|
2733
2815
|
\`\`\`typescript
|
|
2734
|
-
import {
|
|
2816
|
+
import { AgentSafetyTab } from '@iblai/iblai-js/web-containers/next';
|
|
2735
2817
|
import type {
|
|
2736
|
-
|
|
2818
|
+
AgentSafetyTabProps,
|
|
2737
2819
|
SafetyTabLabels,
|
|
2738
2820
|
SafetySelectedPrompt,
|
|
2739
2821
|
SafetyEditFormValues,
|
|
2740
2822
|
DeepPartial,
|
|
2741
2823
|
} from '@iblai/iblai-js/web-containers/next';
|
|
2742
2824
|
|
|
2743
|
-
interface
|
|
2825
|
+
interface AgentSafetyTabProps {
|
|
2744
2826
|
/** Render a prompt string as rich content (e.g. Markdown). Defaults to plain text. */
|
|
2745
2827
|
renderPromptContent?: (content: string) => React.ReactNode;
|
|
2746
2828
|
/** Modal for editing a prompt. Host-provided. */
|
|
@@ -2764,7 +2846,7 @@ interface SafetyTabProps {
|
|
|
2764
2846
|
labels?: DeepPartial<SafetyTabLabels>;
|
|
2765
2847
|
}
|
|
2766
2848
|
|
|
2767
|
-
<
|
|
2849
|
+
<AgentSafetyTab
|
|
2768
2850
|
labels={MENTOR_SAFETY_TAB_LABELS}
|
|
2769
2851
|
renderPromptContent={(content) => (
|
|
2770
2852
|
<Markdown className="text-sm text-gray-700">
|
|
@@ -2785,7 +2867,7 @@ The moderation/safety toggle switches use \`executeGatedAction\` from context wh
|
|
|
2785
2867
|
**File Location**: \`packages/web-containers/src/components/modals/edit-mentor-modal/tabs/safety-tab.tsx\``,
|
|
2786
2868
|
CopyButton: `# CopyButton Component
|
|
2787
2869
|
|
|
2788
|
-
Small button that copies text to the clipboard and shows "Copied" feedback for a short duration. Used by prompt cards in
|
|
2870
|
+
Small button that copies text to the clipboard and shows "Copied" feedback for a short duration. Used by prompt cards in AgentSafetyTab, AgentPromptsTab, and AgentDisclaimersTab.
|
|
2789
2871
|
|
|
2790
2872
|
\`\`\`typescript
|
|
2791
2873
|
import { CopyButton } from '@iblai/iblai-js/web-containers/next';
|
|
@@ -2985,25 +3067,25 @@ interface StarButtonProps {
|
|
|
2985
3067
|
// Each tab reads identity (tenantKey / mentorId / username / enableRBAC /
|
|
2986
3068
|
// executeGatedAction) from <AgentSettingsProvider> via useAgentSettings().
|
|
2987
3069
|
// ============================================================================
|
|
2988
|
-
|
|
3070
|
+
AgentAccessTab: `# AgentAccessTab Component
|
|
2989
3071
|
|
|
2990
3072
|
RBAC access / role management tab for the Edit Mentor Modal. Lists existing access policies, supports adding users or groups, and editing/removing their roles. Reads identity from \`AgentSettingsProvider\`.
|
|
2991
3073
|
|
|
2992
3074
|
\`\`\`typescript
|
|
2993
|
-
import {
|
|
3075
|
+
import { AgentAccessTab } from '@iblai/iblai-js/web-containers/next';
|
|
2994
3076
|
import type {
|
|
2995
|
-
|
|
3077
|
+
AgentAccessTabProps,
|
|
2996
3078
|
AccessTabLabels,
|
|
2997
3079
|
DeepPartial,
|
|
2998
3080
|
} from '@iblai/iblai-js/web-containers/next';
|
|
2999
3081
|
|
|
3000
|
-
interface
|
|
3082
|
+
interface AgentAccessTabProps {
|
|
3001
3083
|
labels?: DeepPartial<AccessTabLabels>;
|
|
3002
3084
|
/** Called when the tab fetches RBAC permissions for /users/ and /groups/. */
|
|
3003
3085
|
onPermissionsLoaded?: (permissions: object) => void;
|
|
3004
3086
|
}
|
|
3005
3087
|
|
|
3006
|
-
<
|
|
3088
|
+
<AgentAccessTab
|
|
3007
3089
|
labels={MENTOR_ACCESS_TAB_LABELS}
|
|
3008
3090
|
onPermissionsLoaded={(perms) => dispatch(rbac.merge(perms))}
|
|
3009
3091
|
/>
|
|
@@ -3012,43 +3094,43 @@ interface AccessTabProps {
|
|
|
3012
3094
|
> **Import from \`@iblai/iblai-js/web-containers/next\`** — requires Next.js and AgentSettingsProvider wrapper
|
|
3013
3095
|
|
|
3014
3096
|
**File Location**: \`packages/web-containers/src/components/modals/edit-mentor-modal/tabs/access-tab.tsx\``,
|
|
3015
|
-
|
|
3097
|
+
AgentApiTab: `# AgentApiTab Component
|
|
3016
3098
|
|
|
3017
3099
|
API-key management tab: lists existing keys with their creation date and lets the admin create or revoke them. Reads identity from \`AgentSettingsProvider\` and uses \`useGetApiKeysQuery\` / \`WithPermissions\`. Gated via \`executeGatedAction\` when provided.
|
|
3018
3100
|
|
|
3019
3101
|
\`\`\`typescript
|
|
3020
|
-
import {
|
|
3102
|
+
import { AgentApiTab } from '@iblai/iblai-js/web-containers/next';
|
|
3021
3103
|
import type {
|
|
3022
|
-
|
|
3104
|
+
AgentApiTabProps,
|
|
3023
3105
|
ApiTabLabels,
|
|
3024
3106
|
ApiKey,
|
|
3025
3107
|
DeepPartial,
|
|
3026
3108
|
} from '@iblai/iblai-js/web-containers/next';
|
|
3027
3109
|
|
|
3028
|
-
interface
|
|
3110
|
+
interface AgentApiTabProps {
|
|
3029
3111
|
labels?: DeepPartial<ApiTabLabels>;
|
|
3030
3112
|
}
|
|
3031
3113
|
|
|
3032
|
-
<
|
|
3114
|
+
<AgentApiTab labels={MENTOR_API_TAB_LABELS} />
|
|
3033
3115
|
\`\`\`
|
|
3034
3116
|
|
|
3035
3117
|
> **Import from \`@iblai/iblai-js/web-containers/next\`** — requires Next.js and AgentSettingsProvider wrapper
|
|
3036
3118
|
|
|
3037
3119
|
**File Location**: \`packages/web-containers/src/components/modals/edit-mentor-modal/tabs/api-tab.tsx\``,
|
|
3038
|
-
|
|
3120
|
+
AgentDatasetsTab: `# AgentDatasetsTab Component
|
|
3039
3121
|
|
|
3040
3122
|
Knowledge / training dataset management tab. Shows a searchable paginated table of datasets with train / delete / retrain actions. Because the standalone "Add Resource" modal (Dropbox / Drive / OneDrive pickers) and the standalone pagination component have deep app-specific dependencies, both are injected as props.
|
|
3041
3123
|
|
|
3042
3124
|
\`\`\`typescript
|
|
3043
|
-
import {
|
|
3125
|
+
import { AgentDatasetsTab } from '@iblai/iblai-js/web-containers/next';
|
|
3044
3126
|
import type {
|
|
3045
|
-
|
|
3127
|
+
AgentDatasetsTabProps,
|
|
3046
3128
|
DatasetsTabLabels,
|
|
3047
3129
|
Dataset,
|
|
3048
3130
|
DeepPartial,
|
|
3049
3131
|
} from '@iblai/iblai-js/web-containers/next';
|
|
3050
3132
|
|
|
3051
|
-
interface
|
|
3133
|
+
interface AgentDatasetsTabProps {
|
|
3052
3134
|
labels?: DeepPartial<DatasetsTabLabels>;
|
|
3053
3135
|
onSelect?: (dataset: Dataset) => void;
|
|
3054
3136
|
selectedDatasetId?: string;
|
|
@@ -3065,7 +3147,7 @@ interface DatasetsTabProps {
|
|
|
3065
3147
|
}>;
|
|
3066
3148
|
}
|
|
3067
3149
|
|
|
3068
|
-
<
|
|
3150
|
+
<AgentDatasetsTab
|
|
3069
3151
|
labels={MENTOR_DATASETS_TAB_LABELS}
|
|
3070
3152
|
AddResourceModal={AddResourceModal}
|
|
3071
3153
|
PaginationComponent={IblPagination}
|
|
@@ -3075,25 +3157,25 @@ interface DatasetsTabProps {
|
|
|
3075
3157
|
> **Import from \`@iblai/iblai-js/web-containers/next\`** — requires Next.js and AgentSettingsProvider wrapper
|
|
3076
3158
|
|
|
3077
3159
|
**File Location**: \`packages/web-containers/src/components/modals/edit-mentor-modal/tabs/datasets-tab.tsx\``,
|
|
3078
|
-
|
|
3160
|
+
AgentDisclaimersTab: `# AgentDisclaimersTab Component
|
|
3079
3161
|
|
|
3080
3162
|
User Agreement + Advisory disclaimer management tab. Renders the current disclaimer content with an Edit action, a separate user-agreement card, and supports plain or Markdown rendering via \`renderContent\`.
|
|
3081
3163
|
|
|
3082
3164
|
\`\`\`typescript
|
|
3083
|
-
import {
|
|
3165
|
+
import { AgentDisclaimersTab } from '@iblai/iblai-js/web-containers/next';
|
|
3084
3166
|
import type {
|
|
3085
|
-
|
|
3167
|
+
AgentDisclaimersTabProps,
|
|
3086
3168
|
DisclaimersTabLabels,
|
|
3087
3169
|
DeepPartial,
|
|
3088
3170
|
} from '@iblai/iblai-js/web-containers/next';
|
|
3089
3171
|
|
|
3090
|
-
interface
|
|
3172
|
+
interface AgentDisclaimersTabProps {
|
|
3091
3173
|
labels?: DeepPartial<DisclaimersTabLabels>;
|
|
3092
3174
|
defaultDisclaimerContent?: string;
|
|
3093
3175
|
renderContent?: (content: string) => React.ReactNode;
|
|
3094
3176
|
}
|
|
3095
3177
|
|
|
3096
|
-
<
|
|
3178
|
+
<AgentDisclaimersTab
|
|
3097
3179
|
labels={MENTOR_DISCLAIMERS_TAB_LABELS}
|
|
3098
3180
|
defaultDisclaimerContent={DEFAULT_DISCLAIMER}
|
|
3099
3181
|
renderContent={(content) => <Markdown>{content}</Markdown>}
|
|
@@ -3103,14 +3185,14 @@ interface DisclaimersTabProps {
|
|
|
3103
3185
|
> **Import from \`@iblai/iblai-js/web-containers/next\`** — requires Next.js and AgentSettingsProvider wrapper
|
|
3104
3186
|
|
|
3105
3187
|
**File Location**: \`packages/web-containers/src/components/modals/edit-mentor-modal/tabs/disclaimers-tab.tsx\``,
|
|
3106
|
-
|
|
3188
|
+
AgentEmbedTab: `# AgentEmbedTab Component
|
|
3107
3189
|
|
|
3108
3190
|
Embed / share configuration tab. Handles visibility, SSO provider selection, custom floating bubble config, CSS/JS overrides, and generates copy-paste embed snippets via a host-provided \`CopyCodeBlock\` component. URL building and the copyable code renderer are injected because they depend on standalone-specific libs.
|
|
3109
3191
|
|
|
3110
3192
|
\`\`\`typescript
|
|
3111
|
-
import {
|
|
3193
|
+
import { AgentEmbedTab } from '@iblai/iblai-js/web-containers/next';
|
|
3112
3194
|
import type {
|
|
3113
|
-
|
|
3195
|
+
AgentEmbedTabProps,
|
|
3114
3196
|
EmbedTabLabels,
|
|
3115
3197
|
EmbedUrlConfig,
|
|
3116
3198
|
VisibilityOption,
|
|
@@ -3118,7 +3200,7 @@ import type {
|
|
|
3118
3200
|
DeepPartial,
|
|
3119
3201
|
} from '@iblai/iblai-js/web-containers/next';
|
|
3120
3202
|
|
|
3121
|
-
interface
|
|
3203
|
+
interface AgentEmbedTabProps {
|
|
3122
3204
|
labels?: DeepPartial<EmbedTabLabels>;
|
|
3123
3205
|
urls: EmbedUrlConfig;
|
|
3124
3206
|
CopyCodeBlock: React.ComponentType<{ code: string }>;
|
|
@@ -3128,7 +3210,7 @@ interface EmbedTabProps {
|
|
|
3128
3210
|
supportEmail?: string;
|
|
3129
3211
|
}
|
|
3130
3212
|
|
|
3131
|
-
<
|
|
3213
|
+
<AgentEmbedTab
|
|
3132
3214
|
labels={MENTOR_EMBED_TAB_LABELS}
|
|
3133
3215
|
urls={embedUrls}
|
|
3134
3216
|
CopyCodeBlock={CopyCodeBlock}
|
|
@@ -3140,19 +3222,19 @@ interface EmbedTabProps {
|
|
|
3140
3222
|
> **Import from \`@iblai/iblai-js/web-containers/next\`** — requires Next.js and AgentSettingsProvider wrapper
|
|
3141
3223
|
|
|
3142
3224
|
**File Location**: \`packages/web-containers/src/components/modals/edit-mentor-modal/tabs/embed-tab.tsx\``,
|
|
3143
|
-
|
|
3225
|
+
AgentHistoryTab: `# AgentHistoryTab Component
|
|
3144
3226
|
|
|
3145
3227
|
Chat-history browser for a mentor. Supports date-range / user / session filtering, pagination, optional export, and custom rendering of AI message content (e.g. Markdown). The pagination UI is host-provided.
|
|
3146
3228
|
|
|
3147
3229
|
\`\`\`typescript
|
|
3148
|
-
import {
|
|
3230
|
+
import { AgentHistoryTab } from '@iblai/iblai-js/web-containers/next';
|
|
3149
3231
|
import type {
|
|
3150
|
-
|
|
3232
|
+
AgentHistoryTabProps,
|
|
3151
3233
|
HistoryTabLabels,
|
|
3152
3234
|
DeepPartial,
|
|
3153
3235
|
} from '@iblai/iblai-js/web-containers/next';
|
|
3154
3236
|
|
|
3155
|
-
interface
|
|
3237
|
+
interface AgentHistoryTabProps {
|
|
3156
3238
|
renderMessageContent?: (content: string) => React.ReactNode;
|
|
3157
3239
|
PaginationComponent?: React.ComponentType<{
|
|
3158
3240
|
currentPage: number;
|
|
@@ -3166,7 +3248,7 @@ interface HistoryTabProps {
|
|
|
3166
3248
|
labels?: DeepPartial<HistoryTabLabels>;
|
|
3167
3249
|
}
|
|
3168
3250
|
|
|
3169
|
-
<
|
|
3251
|
+
<AgentHistoryTab
|
|
3170
3252
|
labels={MENTOR_HISTORY_TAB_LABELS}
|
|
3171
3253
|
renderMessageContent={(c) => <Markdown>{c}</Markdown>}
|
|
3172
3254
|
PaginationComponent={IblPagination}
|
|
@@ -3178,29 +3260,29 @@ interface HistoryTabProps {
|
|
|
3178
3260
|
> **Import from \`@iblai/iblai-js/web-containers/next\`** — requires Next.js and AgentSettingsProvider wrapper
|
|
3179
3261
|
|
|
3180
3262
|
**File Location**: \`packages/web-containers/src/components/modals/edit-mentor-modal/tabs/history-tab.tsx\``,
|
|
3181
|
-
|
|
3263
|
+
AgentPromptsTab: `# AgentPromptsTab Component
|
|
3182
3264
|
|
|
3183
3265
|
Suggested / guided prompts management tab. Supports toggling greeting method (proactive response vs. proactive prompt), adding / editing individual prompts, and rendering prompt bodies as plain text or Markdown via \`renderPromptContent\`.
|
|
3184
3266
|
|
|
3185
3267
|
\`\`\`typescript
|
|
3186
3268
|
import {
|
|
3187
|
-
|
|
3269
|
+
AgentPromptsTab,
|
|
3188
3270
|
GreetingMethod,
|
|
3189
3271
|
} from '@iblai/iblai-js/web-containers/next';
|
|
3190
3272
|
import type {
|
|
3191
|
-
|
|
3273
|
+
AgentPromptsTabProps,
|
|
3192
3274
|
PromptsTabLabels,
|
|
3193
3275
|
PromptsSelectedPrompt,
|
|
3194
3276
|
PromptsEditFormValues,
|
|
3195
3277
|
DeepPartial,
|
|
3196
3278
|
} from '@iblai/iblai-js/web-containers/next';
|
|
3197
3279
|
|
|
3198
|
-
interface
|
|
3280
|
+
interface AgentPromptsTabProps {
|
|
3199
3281
|
renderPromptContent?: (content: string) => React.ReactNode;
|
|
3200
3282
|
labels?: DeepPartial<PromptsTabLabels>;
|
|
3201
3283
|
}
|
|
3202
3284
|
|
|
3203
|
-
<
|
|
3285
|
+
<AgentPromptsTab
|
|
3204
3286
|
labels={MENTOR_PROMPTS_TAB_LABELS}
|
|
3205
3287
|
renderPromptContent={(c) => <Markdown>{parsePrompt(c)}</Markdown>}
|
|
3206
3288
|
/>
|
|
@@ -3211,7 +3293,7 @@ interface PromptsTabProps {
|
|
|
3211
3293
|
**File Location**: \`packages/web-containers/src/components/modals/edit-mentor-modal/tabs/prompts-tab.tsx\``,
|
|
3212
3294
|
CopyMentorModal: `# CopyMentorModal Component
|
|
3213
3295
|
|
|
3214
|
-
Forks a mentor into another tenant. Renders a Dialog with name / visibility / target-tenant inputs, drives \`useForkMentorMutation\` + \`useEditMentorMutation\`, and surfaces toast feedback. Typically launched from \`
|
|
3296
|
+
Forks a mentor into another tenant. Renders a Dialog with name / visibility / target-tenant inputs, drives \`useForkMentorMutation\` + \`useEditMentorMutation\`, and surfaces toast feedback. Typically launched from \`AgentSettingsTab\`.
|
|
3215
3297
|
|
|
3216
3298
|
\`\`\`typescript
|
|
3217
3299
|
import { CopyMentorModal } from '@iblai/iblai-js/web-containers/next';
|
|
@@ -3337,11 +3419,11 @@ export function getComponentInfo(componentName) {
|
|
|
3337
3419
|
'CourseContentTabPage',
|
|
3338
3420
|
'CourseContentLayout',
|
|
3339
3421
|
'AgentSettingsProvider',
|
|
3340
|
-
'
|
|
3341
|
-
'
|
|
3342
|
-
'
|
|
3343
|
-
'
|
|
3344
|
-
'
|
|
3422
|
+
'AgentSettingsTab',
|
|
3423
|
+
'AgentLLMTab',
|
|
3424
|
+
'AgentToolsTab',
|
|
3425
|
+
'AgentMemoryTab',
|
|
3426
|
+
'AgentSafetyTab',
|
|
3345
3427
|
'CopyButton',
|
|
3346
3428
|
];
|
|
3347
3429
|
return `Component "${componentName}" not found.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-info.js","sourceRoot":"","sources":["../../src/tools/component-info.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,4EAA4E;IACzF,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,aAA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IAClF,MAAM,cAAc,GAAG;QACrB,qBAAqB;QAErB,kBAAkB;QAElB,UAAU;QAEV,WAAW;QAEX,iBAAiB;QACjB,YAAY;QACZ,QAAQ;QACR,sBAAsB;QAEtB,aAAa;QACb,WAAW;QACX,mBAAmB;QACnB,uBAAuB;QACvB,kBAAkB;QAClB,oBAAoB;QACpB,oBAAoB;QACpB,oBAAoB;QACpB,UAAU;QACV,WAAW;QACX,sBAAsB;QACtB,qBAAqB;QAErB,uBAAuB;QACvB,kBAAkB;QAClB,aAAa;QACb,eAAe;QACf,gBAAgB;QAChB,gBAAgB;QAChB,YAAY;KACb,CAAC;IAEF,OAAO,cAAc,aAAa;;mBAEjB,aAAa,CAAC,MAAM;EACrC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;;wBAEF,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM;EACzF,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;;wBAEjD,cAAc,CAAC,MAAM;EAC3C,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AAC9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hook-info.d.ts","sourceRoot":"","sources":["../../src/tools/hook-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAcxB,CAAC;
|
|
1
|
+
{"version":3,"file":"hook-info.d.ts","sourceRoot":"","sources":["../../src/tools/hook-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAcxB,CAAC;AAu+EF,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAwIpD"}
|
package/dist/tools/hook-info.js
CHANGED
|
@@ -272,6 +272,50 @@ const {
|
|
|
272
272
|
- \`handleSubscribeUserTrigger()\` - Initiates subscription renewal
|
|
273
273
|
|
|
274
274
|
**File Location**: \`packages/web-utils/src/hooks/subscription/use-subscription-handler.ts\``,
|
|
275
|
+
useStripeUpgrade: `# useStripeUpgrade Hook
|
|
276
|
+
|
|
277
|
+
Resolves the Stripe Pricing Page session for a tenant and exposes ready-to-redirect checkout URLs for the \`free\` and \`premium\` plans. Used by the \`CreditBalance\` dropdown ("Upgrade Plan" button) and \`UpgradePackageModal\` ("Upgrade for free" CTA) to start the upgrade flow.
|
|
278
|
+
|
|
279
|
+
\`\`\`typescript
|
|
280
|
+
import { useStripeUpgrade } from '@iblai/iblai-js/web-utils';
|
|
281
|
+
|
|
282
|
+
interface UseStripeUpgradeArgs {
|
|
283
|
+
redirectUrl: string; // success_url passed to Stripe
|
|
284
|
+
sourcePlatformKey: string; // current tenant key
|
|
285
|
+
mainPlatformKey: string; // main IBL platform key
|
|
286
|
+
currentUserEmail: string; // prefills locked_prefilled_email on the checkout URL
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
type StripeUpgradePlan = 'free' | 'premium';
|
|
290
|
+
|
|
291
|
+
const {
|
|
292
|
+
isLoading,
|
|
293
|
+
freeUrl, // resolved checkout URL for the free plan (after handleUpgrade)
|
|
294
|
+
premiumUrl, // resolved checkout URL for the premium plan (after handleUpgrade)
|
|
295
|
+
handleUpgrade, // (redirectPlan?: 'free' | 'premium') => Promise<void>
|
|
296
|
+
} = useStripeUpgrade({
|
|
297
|
+
redirectUrl,
|
|
298
|
+
sourcePlatformKey,
|
|
299
|
+
mainPlatformKey,
|
|
300
|
+
currentUserEmail,
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
// Trigger an immediate redirect into the premium checkout
|
|
304
|
+
await handleUpgrade('premium');
|
|
305
|
+
|
|
306
|
+
// Or resolve URLs without redirecting (useful when rendering plan-specific buttons)
|
|
307
|
+
await handleUpgrade();
|
|
308
|
+
\`\`\`
|
|
309
|
+
|
|
310
|
+
**Behavior:**
|
|
311
|
+
- Calls \`useLazyGetStripePricingPageSessionQuery\` (data-layer) with \`platform_key=mainPlatformKey\` and \`source_platform_key=sourcePlatformKey\`.
|
|
312
|
+
- Parses the returned \`payment_link_url\` (a JSON string of \`{ free?, premium? }\`) and appends \`locked_prefilled_email\` + \`client_reference_id\` to each link.
|
|
313
|
+
- If \`redirectPlan\` is provided and the matching link resolved, sets \`window.location.href\` to that URL.
|
|
314
|
+
- \`isLoading\` is \`true\` while the lazy query is in-flight.
|
|
315
|
+
|
|
316
|
+
**Related:** \`UpgradePackageModal\`, \`CreditBalance\`, \`useLazyGetStripePricingPageSessionQuery\`, \`useSubscriptionHandler\`.
|
|
317
|
+
|
|
318
|
+
**File Location**: \`packages/web-utils/src/hooks/stripe/use-stripe-upgrade.ts\``,
|
|
275
319
|
// ============================================================================
|
|
276
320
|
// TENANT HOOKS
|
|
277
321
|
// ============================================================================
|
|
@@ -2369,6 +2413,7 @@ export function getHookInfo(hookName) {
|
|
|
2369
2413
|
- useProfileImageUpload - Profile image upload
|
|
2370
2414
|
- useTenantMetadata - Tenant configuration
|
|
2371
2415
|
- useSubscriptionHandler - Subscription management
|
|
2416
|
+
- useStripeUpgrade - Resolve Stripe Pricing Page session and redirect to free/premium checkout
|
|
2372
2417
|
- useTimeTracker - Time tracking for analytics
|
|
2373
2418
|
- useDayJs - Date/time utilities
|
|
2374
2419
|
|