@iblai/web-containers 1.65.3 → 1.66.0
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/cjs/_virtual/index2.js +2 -2
- package/dist/cjs/_virtual/index3.js +2 -2
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/copy-mentor-modal.js +50 -15
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/copy-mentor-modal.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/labels.js +6 -6
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/labels.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab.js +2 -2
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab.js.map +1 -1
- package/dist/cjs/i18n/messages/en.json.js +3 -3
- package/dist/cjs/i18n/messages/es.json.js +3 -3
- package/dist/cjs/i18n/messages/fr.json.js +3 -3
- package/dist/cjs/i18n/messages/zh.json.js +3 -3
- package/dist/cjs/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/cjs/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/_virtual/index2.js +2 -2
- package/dist/esm/_virtual/index3.js +2 -2
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/copy-mentor-modal.js +50 -15
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/copy-mentor-modal.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/labels.js +6 -6
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/labels.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab.js +2 -2
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab.js.map +1 -1
- package/dist/esm/i18n/messages/en.json.js +3 -3
- package/dist/esm/i18n/messages/es.json.js +3 -3
- package/dist/esm/i18n/messages/fr.json.js +3 -3
- package/dist/esm/i18n/messages/zh.json.js +3 -3
- package/dist/esm/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
- package/dist/esm/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
- package/dist/esm/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/esm/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/next/index.d.ts +24 -7
- package/dist/package.json +1 -1
- package/package.json +3 -3
package/dist/next/index.d.ts
CHANGED
|
@@ -1505,13 +1505,16 @@ interface SettingsTabLabels {
|
|
|
1505
1505
|
defaultNamePrefix: string;
|
|
1506
1506
|
/** Fallback noun when the source name is unknown, e.g. "Mentor" → "Copy of Mentor" */
|
|
1507
1507
|
fallbackName: string;
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1508
|
+
/** Choice shown only to an admin of the organization being copied from. */
|
|
1509
|
+
copyHereLabel: string;
|
|
1510
|
+
/** Sits under the choice, explaining what picking another one involves. */
|
|
1511
|
+
copyElsewhereHint: string;
|
|
1511
1512
|
includeTrainingDataLabel: string;
|
|
1512
1513
|
cancel: string;
|
|
1513
1514
|
confirm: string;
|
|
1514
1515
|
confirming: string;
|
|
1516
|
+
/** Sends the user to the auth app to pick a different organization. */
|
|
1517
|
+
continueLabel: string;
|
|
1515
1518
|
successToast: string;
|
|
1516
1519
|
errorToast: string;
|
|
1517
1520
|
missingContextToast: string;
|
|
@@ -1606,10 +1609,22 @@ interface CopyMentorModalProps {
|
|
|
1606
1609
|
mentorId: string;
|
|
1607
1610
|
/** Current user's username — required by mutations. */
|
|
1608
1611
|
username: string;
|
|
1609
|
-
/**
|
|
1612
|
+
/**
|
|
1613
|
+
* All organizations the user has access to. Only used to answer one
|
|
1614
|
+
* question: may they copy into the one they are already in? Picking any
|
|
1615
|
+
* OTHER organization happens on the auth app, which is the only place that
|
|
1616
|
+
* can mint its tokens — see `authUrl`.
|
|
1617
|
+
*/
|
|
1610
1618
|
tenants: CopyMentorTenant[];
|
|
1611
|
-
/** True while the host is fetching the
|
|
1619
|
+
/** True while the host is fetching the organization list. */
|
|
1612
1620
|
isLoadingTenants?: boolean;
|
|
1621
|
+
/**
|
|
1622
|
+
* Auth app base URL. Continuing opens its organization chooser, which does
|
|
1623
|
+
* the copy and then signs the user in to the result. Without it the modal
|
|
1624
|
+
* can still copy into the current organization, and the Continue button is
|
|
1625
|
+
* left out rather than offered and broken.
|
|
1626
|
+
*/
|
|
1627
|
+
authUrl?: string;
|
|
1613
1628
|
/**
|
|
1614
1629
|
* Fired after the mentor is successfully copied. The host handles all
|
|
1615
1630
|
* post-copy navigation, since the cross-tenant case requires app-specific
|
|
@@ -1626,7 +1641,7 @@ interface CopyMentorModalProps {
|
|
|
1626
1641
|
*/
|
|
1627
1642
|
labels?: CopyMentorModalLabels;
|
|
1628
1643
|
}
|
|
1629
|
-
declare function CopyMentorModal({ open, onClose, tenantKey, mentorId, username, tenants, isLoadingTenants, onSuccessfulCopy, labels, }: CopyMentorModalProps): react_jsx_runtime.JSX.Element;
|
|
1644
|
+
declare function CopyMentorModal({ open, onClose, tenantKey, mentorId, username, tenants, isLoadingTenants, authUrl, onSuccessfulCopy, labels, }: CopyMentorModalProps): react_jsx_runtime.JSX.Element;
|
|
1630
1645
|
|
|
1631
1646
|
interface AgentSettingsTabProps {
|
|
1632
1647
|
onSuccessfulSave?: (mentor: MentorSettings) => void;
|
|
@@ -1636,6 +1651,8 @@ interface AgentSettingsTabProps {
|
|
|
1636
1651
|
tenants: CopyMentorTenant[];
|
|
1637
1652
|
/** Loading state for the tenant list — forwarded to CopyMentorModal. */
|
|
1638
1653
|
isLoadingTenants?: boolean;
|
|
1654
|
+
/** Auth app base URL — forwarded to CopyMentorModal for cross-org copies. */
|
|
1655
|
+
authUrl?: string;
|
|
1639
1656
|
/** Fired after a successful copy — forwarded from CopyMentorModal. */
|
|
1640
1657
|
onSuccessfulCopy?: (params: {
|
|
1641
1658
|
forkedMentorId: string;
|
|
@@ -1649,7 +1666,7 @@ interface AgentSettingsTabProps {
|
|
|
1649
1666
|
*/
|
|
1650
1667
|
labels?: DeepPartial<SettingsTabLabels>;
|
|
1651
1668
|
}
|
|
1652
|
-
declare function AgentSettingsTab({ onSuccessfulSave, onSuccessfulDelete, tenants, isLoadingTenants, onSuccessfulCopy, labels: labelsOverride, }: AgentSettingsTabProps): react_jsx_runtime.JSX.Element;
|
|
1669
|
+
declare function AgentSettingsTab({ onSuccessfulSave, onSuccessfulDelete, tenants, isLoadingTenants, authUrl, onSuccessfulCopy, labels: labelsOverride, }: AgentSettingsTabProps): react_jsx_runtime.JSX.Element;
|
|
1653
1670
|
|
|
1654
1671
|
/** Label slice consumed by this modal. */
|
|
1655
1672
|
type DeleteMentorModalLabels = SettingsTabLabels['deleteModal'];
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iblai/web-containers",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.66.0",
|
|
4
4
|
"description": "ibl web containers",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -179,9 +179,9 @@
|
|
|
179
179
|
"react-remove-scroll": "^2.7.2",
|
|
180
180
|
"react-remove-scroll-bar": "^2.3.8",
|
|
181
181
|
"sonner": "^2.0.0",
|
|
182
|
-
"@iblai/agent-ai": "2.13.3",
|
|
183
182
|
"@iblai/data-layer": "1.39.0",
|
|
184
|
-
"@iblai/
|
|
183
|
+
"@iblai/agent-ai": "2.13.4",
|
|
184
|
+
"@iblai/web-utils": "2.22.0"
|
|
185
185
|
},
|
|
186
186
|
"peerDependenciesMeta": {
|
|
187
187
|
"@livekit/components-react": {
|