@iblai/iblai-js 2.36.3 → 2.37.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.
|
@@ -4198,6 +4198,10 @@ var embedTabLabels$3 = {
|
|
|
4198
4198
|
label: "Allow Agent Selection",
|
|
4199
4199
|
tooltip: "Let signed-in visitors open Explore from the embed and switch to another agent."
|
|
4200
4200
|
},
|
|
4201
|
+
allowFullscreen: {
|
|
4202
|
+
label: "Allow Full Screen",
|
|
4203
|
+
tooltip: "Show a button in the chat that switches between the small window and full screen."
|
|
4204
|
+
},
|
|
4201
4205
|
shareableLink: {
|
|
4202
4206
|
label: "Shareable Link",
|
|
4203
4207
|
tooltip: "Generate a link users can use to chat with this agent anonymously"
|
|
@@ -6836,6 +6840,9 @@ var tabsEmbedTab$3 = {
|
|
|
6836
6840
|
moreInfoAllowMentorSelection: "More info about agent selection",
|
|
6837
6841
|
allowMentorSelectionEnabled: "Agent selection enabled",
|
|
6838
6842
|
allowMentorSelectionDisabled: "Agent selection disabled",
|
|
6843
|
+
moreInfoAllowFullscreen: "More info about full screen",
|
|
6844
|
+
allowFullscreenEnabled: "Full screen enabled",
|
|
6845
|
+
allowFullscreenDisabled: "Full screen disabled",
|
|
6839
6846
|
moreInfoStarterPrompts: "More info about starter prompts",
|
|
6840
6847
|
moreInfoShareableLink: "More info about shareable link",
|
|
6841
6848
|
shareableLinkEnabled: "Generate / Revoke shareable link enabled",
|
|
@@ -12661,6 +12668,10 @@ var embedTabLabels$2 = {
|
|
|
12661
12668
|
label: "Autoriser la sélection d'agent",
|
|
12662
12669
|
tooltip: "Permettre aux visiteurs connectés d'ouvrir Explorer depuis l'intégration et de passer à un autre agent."
|
|
12663
12670
|
},
|
|
12671
|
+
allowFullscreen: {
|
|
12672
|
+
label: "Autoriser le plein écran",
|
|
12673
|
+
tooltip: "Affiche un bouton dans le chat pour passer de la petite fenêtre au plein écran."
|
|
12674
|
+
},
|
|
12664
12675
|
shareableLink: {
|
|
12665
12676
|
label: "Lien partageable",
|
|
12666
12677
|
tooltip: "Générer un lien que les utilisateurs peuvent utiliser pour discuter avec cet agent de manière anonyme"
|
|
@@ -15299,6 +15310,9 @@ var tabsEmbedTab$2 = {
|
|
|
15299
15310
|
moreInfoAllowMentorSelection: "Plus d'informations sur la sélection d'agent",
|
|
15300
15311
|
allowMentorSelectionEnabled: "Sélection d'agent activée",
|
|
15301
15312
|
allowMentorSelectionDisabled: "Sélection d'agent désactivée",
|
|
15313
|
+
moreInfoAllowFullscreen: "Plus d'informations sur le plein écran",
|
|
15314
|
+
allowFullscreenEnabled: "Plein écran activé",
|
|
15315
|
+
allowFullscreenDisabled: "Plein écran désactivé",
|
|
15302
15316
|
moreInfoStarterPrompts: "Plus d'informations sur les suggestions de départ",
|
|
15303
15317
|
moreInfoShareableLink: "Plus d'informations sur le lien partageable",
|
|
15304
15318
|
shareableLinkEnabled: "Lien partageable activé",
|
|
@@ -20958,6 +20972,10 @@ var embedTabLabels$1 = {
|
|
|
20958
20972
|
label: "Permitir selección de agente",
|
|
20959
20973
|
tooltip: "Permite a los visitantes con sesión iniciada abrir Explorar desde la inserción y cambiar a otro agente."
|
|
20960
20974
|
},
|
|
20975
|
+
allowFullscreen: {
|
|
20976
|
+
label: "Permitir pantalla completa",
|
|
20977
|
+
tooltip: "Muestra un botón en el chat para cambiar entre la ventana pequeña y la pantalla completa."
|
|
20978
|
+
},
|
|
20961
20979
|
shareableLink: {
|
|
20962
20980
|
label: "Enlace compartible",
|
|
20963
20981
|
tooltip: "Genere un enlace que los usuarios puedan usar para chatear con este agente de forma anónima"
|
|
@@ -23596,6 +23614,9 @@ var tabsEmbedTab$1 = {
|
|
|
23596
23614
|
moreInfoAllowMentorSelection: "Más información sobre la selección de agente",
|
|
23597
23615
|
allowMentorSelectionEnabled: "Selección de agente habilitada",
|
|
23598
23616
|
allowMentorSelectionDisabled: "Selección de agente deshabilitada",
|
|
23617
|
+
moreInfoAllowFullscreen: "Más información sobre la pantalla completa",
|
|
23618
|
+
allowFullscreenEnabled: "Pantalla completa habilitada",
|
|
23619
|
+
allowFullscreenDisabled: "Pantalla completa deshabilitada",
|
|
23599
23620
|
moreInfoStarterPrompts: "Más información sobre las sugerencias iniciales",
|
|
23600
23621
|
moreInfoShareableLink: "Más información sobre el enlace compartible",
|
|
23601
23622
|
shareableLinkEnabled: "Enlace compartible habilitado",
|
|
@@ -29255,6 +29276,10 @@ var embedTabLabels = {
|
|
|
29255
29276
|
label: "允许选择智能体",
|
|
29256
29277
|
tooltip: "允许已登录的访问者从嵌入中打开探索并切换到其他智能体。"
|
|
29257
29278
|
},
|
|
29279
|
+
allowFullscreen: {
|
|
29280
|
+
label: "允许全屏",
|
|
29281
|
+
tooltip: "在聊天中显示一个按钮,可在小窗口和全屏之间切换。"
|
|
29282
|
+
},
|
|
29258
29283
|
shareableLink: {
|
|
29259
29284
|
label: "可分享链接",
|
|
29260
29285
|
tooltip: "生成一个链接,用户可使用该链接匿名与此智能体聊天"
|
|
@@ -31893,6 +31918,9 @@ var tabsEmbedTab = {
|
|
|
31893
31918
|
moreInfoAllowMentorSelection: "有关选择智能体的更多信息",
|
|
31894
31919
|
allowMentorSelectionEnabled: "选择智能体已启用",
|
|
31895
31920
|
allowMentorSelectionDisabled: "选择智能体已禁用",
|
|
31921
|
+
moreInfoAllowFullscreen: "有关全屏的更多信息",
|
|
31922
|
+
allowFullscreenEnabled: "全屏已启用",
|
|
31923
|
+
allowFullscreenDisabled: "全屏已禁用",
|
|
31896
31924
|
moreInfoStarterPrompts: "更多关于起始提示的信息",
|
|
31897
31925
|
moreInfoShareableLink: "更多关于可分享链接的信息",
|
|
31898
31926
|
shareableLinkEnabled: "可分享链接已启用",
|
|
@@ -98742,6 +98742,10 @@ var embedTabLabels$3 = {
|
|
|
98742
98742
|
label: "Allow Agent Selection",
|
|
98743
98743
|
tooltip: "Let signed-in visitors open Explore from the embed and switch to another agent."
|
|
98744
98744
|
},
|
|
98745
|
+
allowFullscreen: {
|
|
98746
|
+
label: "Allow Full Screen",
|
|
98747
|
+
tooltip: "Show a button in the chat that switches between the small window and full screen."
|
|
98748
|
+
},
|
|
98745
98749
|
shareableLink: {
|
|
98746
98750
|
label: "Shareable Link",
|
|
98747
98751
|
tooltip: "Generate a link users can use to chat with this agent anonymously"
|
|
@@ -101380,6 +101384,9 @@ var tabsEmbedTab$3 = {
|
|
|
101380
101384
|
moreInfoAllowMentorSelection: "More info about agent selection",
|
|
101381
101385
|
allowMentorSelectionEnabled: "Agent selection enabled",
|
|
101382
101386
|
allowMentorSelectionDisabled: "Agent selection disabled",
|
|
101387
|
+
moreInfoAllowFullscreen: "More info about full screen",
|
|
101388
|
+
allowFullscreenEnabled: "Full screen enabled",
|
|
101389
|
+
allowFullscreenDisabled: "Full screen disabled",
|
|
101383
101390
|
moreInfoStarterPrompts: "More info about starter prompts",
|
|
101384
101391
|
moreInfoShareableLink: "More info about shareable link",
|
|
101385
101392
|
shareableLinkEnabled: "Generate / Revoke shareable link enabled",
|
|
@@ -107205,6 +107212,10 @@ var embedTabLabels$2 = {
|
|
|
107205
107212
|
label: "Autoriser la sélection d'agent",
|
|
107206
107213
|
tooltip: "Permettre aux visiteurs connectés d'ouvrir Explorer depuis l'intégration et de passer à un autre agent."
|
|
107207
107214
|
},
|
|
107215
|
+
allowFullscreen: {
|
|
107216
|
+
label: "Autoriser le plein écran",
|
|
107217
|
+
tooltip: "Affiche un bouton dans le chat pour passer de la petite fenêtre au plein écran."
|
|
107218
|
+
},
|
|
107208
107219
|
shareableLink: {
|
|
107209
107220
|
label: "Lien partageable",
|
|
107210
107221
|
tooltip: "Générer un lien que les utilisateurs peuvent utiliser pour discuter avec cet agent de manière anonyme"
|
|
@@ -109843,6 +109854,9 @@ var tabsEmbedTab$2 = {
|
|
|
109843
109854
|
moreInfoAllowMentorSelection: "Plus d'informations sur la sélection d'agent",
|
|
109844
109855
|
allowMentorSelectionEnabled: "Sélection d'agent activée",
|
|
109845
109856
|
allowMentorSelectionDisabled: "Sélection d'agent désactivée",
|
|
109857
|
+
moreInfoAllowFullscreen: "Plus d'informations sur le plein écran",
|
|
109858
|
+
allowFullscreenEnabled: "Plein écran activé",
|
|
109859
|
+
allowFullscreenDisabled: "Plein écran désactivé",
|
|
109846
109860
|
moreInfoStarterPrompts: "Plus d'informations sur les suggestions de départ",
|
|
109847
109861
|
moreInfoShareableLink: "Plus d'informations sur le lien partageable",
|
|
109848
109862
|
shareableLinkEnabled: "Lien partageable activé",
|
|
@@ -115502,6 +115516,10 @@ var embedTabLabels$1 = {
|
|
|
115502
115516
|
label: "Permitir selección de agente",
|
|
115503
115517
|
tooltip: "Permite a los visitantes con sesión iniciada abrir Explorar desde la inserción y cambiar a otro agente."
|
|
115504
115518
|
},
|
|
115519
|
+
allowFullscreen: {
|
|
115520
|
+
label: "Permitir pantalla completa",
|
|
115521
|
+
tooltip: "Muestra un botón en el chat para cambiar entre la ventana pequeña y la pantalla completa."
|
|
115522
|
+
},
|
|
115505
115523
|
shareableLink: {
|
|
115506
115524
|
label: "Enlace compartible",
|
|
115507
115525
|
tooltip: "Genere un enlace que los usuarios puedan usar para chatear con este agente de forma anónima"
|
|
@@ -118140,6 +118158,9 @@ var tabsEmbedTab$1 = {
|
|
|
118140
118158
|
moreInfoAllowMentorSelection: "Más información sobre la selección de agente",
|
|
118141
118159
|
allowMentorSelectionEnabled: "Selección de agente habilitada",
|
|
118142
118160
|
allowMentorSelectionDisabled: "Selección de agente deshabilitada",
|
|
118161
|
+
moreInfoAllowFullscreen: "Más información sobre la pantalla completa",
|
|
118162
|
+
allowFullscreenEnabled: "Pantalla completa habilitada",
|
|
118163
|
+
allowFullscreenDisabled: "Pantalla completa deshabilitada",
|
|
118143
118164
|
moreInfoStarterPrompts: "Más información sobre las sugerencias iniciales",
|
|
118144
118165
|
moreInfoShareableLink: "Más información sobre el enlace compartible",
|
|
118145
118166
|
shareableLinkEnabled: "Enlace compartible habilitado",
|
|
@@ -123799,6 +123820,10 @@ var embedTabLabels = {
|
|
|
123799
123820
|
label: "允许选择智能体",
|
|
123800
123821
|
tooltip: "允许已登录的访问者从嵌入中打开探索并切换到其他智能体。"
|
|
123801
123822
|
},
|
|
123823
|
+
allowFullscreen: {
|
|
123824
|
+
label: "允许全屏",
|
|
123825
|
+
tooltip: "在聊天中显示一个按钮,可在小窗口和全屏之间切换。"
|
|
123826
|
+
},
|
|
123802
123827
|
shareableLink: {
|
|
123803
123828
|
label: "可分享链接",
|
|
123804
123829
|
tooltip: "生成一个链接,用户可使用该链接匿名与此智能体聊天"
|
|
@@ -126437,6 +126462,9 @@ var tabsEmbedTab = {
|
|
|
126437
126462
|
moreInfoAllowMentorSelection: "有关选择智能体的更多信息",
|
|
126438
126463
|
allowMentorSelectionEnabled: "选择智能体已启用",
|
|
126439
126464
|
allowMentorSelectionDisabled: "选择智能体已禁用",
|
|
126465
|
+
moreInfoAllowFullscreen: "有关全屏的更多信息",
|
|
126466
|
+
allowFullscreenEnabled: "全屏已启用",
|
|
126467
|
+
allowFullscreenDisabled: "全屏已禁用",
|
|
126440
126468
|
moreInfoStarterPrompts: "更多关于起始提示的信息",
|
|
126441
126469
|
moreInfoShareableLink: "更多关于可分享链接的信息",
|
|
126442
126470
|
shareableLinkEnabled: "可分享链接已启用",
|
|
@@ -325570,6 +325598,9 @@ const getUrl = (settings, tenant, mentorIframeUrl, extraBodyClasses = '') => {
|
|
|
325570
325598
|
if (settings.allow_mentor_selection) {
|
|
325571
325599
|
url += `&allow-mentor-selection=true`;
|
|
325572
325600
|
}
|
|
325601
|
+
if (settings.allow_fullscreen) {
|
|
325602
|
+
url += `&allow-fullscreen=true`;
|
|
325603
|
+
}
|
|
325573
325604
|
return url;
|
|
325574
325605
|
};
|
|
325575
325606
|
const getEmbedCode = async (tenant, settings, redirectToken, urls, useCustomFloatingBubble, customFloatingBubbleConfig) => {
|
|
@@ -325725,6 +325756,36 @@ const getEmbedCode = async (tenant, settings, redirectToken, urls, useCustomFloa
|
|
|
325725
325756
|
return { iframeContainer, iframe };
|
|
325726
325757
|
}
|
|
325727
325758
|
|
|
325759
|
+
${settings.allow_fullscreen
|
|
325760
|
+
? `
|
|
325761
|
+
let savedNormalStyles = null;
|
|
325762
|
+
|
|
325763
|
+
function setWidgetFullscreen(fullscreen) {
|
|
325764
|
+
const widget = document.getElementById('ibl-chat-widget-container');
|
|
325765
|
+
const bubble = document.querySelector('.ibl-chat-bubble');
|
|
325766
|
+
const iframe = widget?.querySelector('iframe');
|
|
325767
|
+
if (!widget) return;
|
|
325768
|
+
if (fullscreen) {
|
|
325769
|
+
if (savedNormalStyles === null) {
|
|
325770
|
+
savedNormalStyles = {
|
|
325771
|
+
widget: widget.style.cssText,
|
|
325772
|
+
iframeRadius: iframe ? iframe.style.borderRadius : '',
|
|
325773
|
+
bubbleDisplay: bubble ? bubble.style.display : '',
|
|
325774
|
+
};
|
|
325775
|
+
}
|
|
325776
|
+
widget.style.cssText = 'position: fixed !important; inset: 0 !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100vw !important; max-width: 100vw !important; height: 100vh !important; border: none !important; z-index: 2147483647;';
|
|
325777
|
+
if (iframe) iframe.style.borderRadius = '0';
|
|
325778
|
+
if (bubble) bubble.style.display = 'none';
|
|
325779
|
+
} else if (savedNormalStyles !== null) {
|
|
325780
|
+
widget.style.cssText = savedNormalStyles.widget;
|
|
325781
|
+
if (iframe) iframe.style.borderRadius = savedNormalStyles.iframeRadius;
|
|
325782
|
+
if (bubble) bubble.style.display = savedNormalStyles.bubbleDisplay;
|
|
325783
|
+
savedNormalStyles = null;
|
|
325784
|
+
}
|
|
325785
|
+
}
|
|
325786
|
+
`
|
|
325787
|
+
: ''}
|
|
325788
|
+
|
|
325728
325789
|
function toggleWidget() {
|
|
325729
325790
|
let widget = document.getElementById('ibl-chat-widget-container');
|
|
325730
325791
|
const bubble = document.querySelector('.ibl-chat-bubble');
|
|
@@ -325753,6 +325814,7 @@ const getEmbedCode = async (tenant, settings, redirectToken, urls, useCustomFloa
|
|
|
325753
325814
|
setupFocusTrap(iframe);
|
|
325754
325815
|
}, 100);
|
|
325755
325816
|
} else {
|
|
325817
|
+
${settings.allow_fullscreen ? 'setWidgetFullscreen(false);' : ''}
|
|
325756
325818
|
widget.style.display = 'none';
|
|
325757
325819
|
bubble.setAttribute('aria-expanded', 'false');
|
|
325758
325820
|
bubble.focus();
|
|
@@ -325949,6 +326011,11 @@ const getEmbedCode = async (tenant, settings, redirectToken, urls, useCustomFloa
|
|
|
325949
326011
|
if (message?.closeEmbed) {
|
|
325950
326012
|
toggleWidget();
|
|
325951
326013
|
}
|
|
326014
|
+
${settings.allow_fullscreen
|
|
326015
|
+
? `if (typeof message?.embedFullscreen === 'boolean') {
|
|
326016
|
+
setWidgetFullscreen(message.embedFullscreen);
|
|
326017
|
+
}`
|
|
326018
|
+
: ''}
|
|
325952
326019
|
});
|
|
325953
326020
|
};
|
|
325954
326021
|
</script>
|
|
@@ -325983,6 +326050,7 @@ const useEmbedTab = (urls) => {
|
|
|
325983
326050
|
var _a, _b, _c, _d, _e, _f;
|
|
325984
326051
|
const [embedCode, setEmbedCode] = useState('');
|
|
325985
326052
|
const [allowMentorSelection, setAllowMentorSelection] = useState(false);
|
|
326053
|
+
const [allowFullscreen, setAllowFullscreen] = useState(false);
|
|
325986
326054
|
const { tenantKey, mentorId, username } = useAgentSettings();
|
|
325987
326055
|
const { data: mentorPublicSettings } = useGetMentorPublicSettingsQuery({
|
|
325988
326056
|
mentor: mentorId,
|
|
@@ -326118,7 +326186,11 @@ const useEmbedTab = (urls) => {
|
|
|
326118
326186
|
}
|
|
326119
326187
|
const embed = await getEmbedCode(tenantKey,
|
|
326120
326188
|
// @ts-expect-error - value is not typed correctly
|
|
326121
|
-
{
|
|
326189
|
+
{
|
|
326190
|
+
...value,
|
|
326191
|
+
allow_mentor_selection: allowMentorSelection,
|
|
326192
|
+
allow_fullscreen: allowFullscreen,
|
|
326193
|
+
}, (_a = syncResult.redirectToken) !== null && _a !== void 0 ? _a : '', urls, value.icon_selection === 'custom', customFloatingBubbleConfig);
|
|
326122
326194
|
setEmbedCode(embed);
|
|
326123
326195
|
},
|
|
326124
326196
|
});
|
|
@@ -326151,6 +326223,8 @@ const useEmbedTab = (urls) => {
|
|
|
326151
326223
|
return {
|
|
326152
326224
|
allowMentorSelection,
|
|
326153
326225
|
setAllowMentorSelection,
|
|
326226
|
+
allowFullscreen,
|
|
326227
|
+
setAllowFullscreen,
|
|
326154
326228
|
createTokenHandler,
|
|
326155
326229
|
form,
|
|
326156
326230
|
createTokenError,
|
|
@@ -326234,6 +326308,10 @@ const AGENT_EMBED_TAB_LABELS = {
|
|
|
326234
326308
|
label: 'Allow Agent Selection',
|
|
326235
326309
|
tooltip: 'Let signed-in visitors open Explore from the embed and switch to another agent.',
|
|
326236
326310
|
},
|
|
326311
|
+
allowFullscreen: {
|
|
326312
|
+
label: 'Allow Full Screen',
|
|
326313
|
+
tooltip: 'Show a button in the chat that switches between the small window and full screen.',
|
|
326314
|
+
},
|
|
326237
326315
|
shareableLink: {
|
|
326238
326316
|
label: 'Shareable Link',
|
|
326239
326317
|
tooltip: 'Generate a link users can use to chat with this agent anonymously',
|
|
@@ -326321,6 +326399,10 @@ function buildEmbedTabLabels(t) {
|
|
|
326321
326399
|
label: t('embedTabLabels.fields.allowMentorSelection.label'),
|
|
326322
326400
|
tooltip: t('embedTabLabels.fields.allowMentorSelection.tooltip'),
|
|
326323
326401
|
},
|
|
326402
|
+
allowFullscreen: {
|
|
326403
|
+
label: t('embedTabLabels.fields.allowFullscreen.label'),
|
|
326404
|
+
tooltip: t('embedTabLabels.fields.allowFullscreen.tooltip'),
|
|
326405
|
+
},
|
|
326324
326406
|
shareableLink: {
|
|
326325
326407
|
label: t('embedTabLabels.fields.shareableLink.label'),
|
|
326326
326408
|
tooltip: t('embedTabLabels.fields.shareableLink.tooltip'),
|
|
@@ -326457,7 +326539,7 @@ function AgentEmbedTab({ labels: labelsProp, urls, CopyCodeBlock, visibilityOpti
|
|
|
326457
326539
|
useEffect(() => {
|
|
326458
326540
|
setShareableToken(shareableTokenData);
|
|
326459
326541
|
}, [shareableTokenData]);
|
|
326460
|
-
const { allowMentorSelection, setAllowMentorSelection, form, createTokenHandler, createTokenError, setCreateTokenError, isCreateTokenLoading, redirectTokenData, embedCode, setEmbedCode, customFloatingBubbleConfig, handleFloatingBubbleImageError, focusEditCustomFloatingBubble, setFocusEditCustomFloatingBubble, updateConfig, updateMultipleConfig, syncEmbedSettings, } = useEmbedTab(urls);
|
|
326542
|
+
const { allowMentorSelection, setAllowMentorSelection, allowFullscreen, setAllowFullscreen, form, createTokenHandler, createTokenError, setCreateTokenError, isCreateTokenLoading, redirectTokenData, embedCode, setEmbedCode, customFloatingBubbleConfig, handleFloatingBubbleImageError, focusEditCustomFloatingBubble, setFocusEditCustomFloatingBubble, updateConfig, updateMultipleConfig, syncEmbedSettings, } = useEmbedTab(urls);
|
|
326461
326543
|
const { data: mentorSettings, isLoading: isLoadingSettings } = useGetMentorSettingsQuery(
|
|
326462
326544
|
// @ts-expect-error userId is not part of useGetMentorSettingsQuery Query definition
|
|
326463
326545
|
{ mentor: mentorId, org: tenantKey, userId: username !== null && username !== void 0 ? username : '' }, { skip: !username || !mentorId || !tenantKey });
|
|
@@ -326726,7 +326808,9 @@ function AgentEmbedTab({ labels: labelsProp, urls, CopyCodeBlock, visibilityOpti
|
|
|
326726
326808
|
? t('tabsEmbedTab.showVoiceRecordEnabled')
|
|
326727
326809
|
: t('tabsEmbedTab.showVoiceRecordDisabled') })] })) }), jsxs("div", { className: "flex items-center justify-between", children: [jsxs("div", { className: "flex items-center gap-2", children: [jsx("span", { className: "text-sm font-medium text-[#646464]", children: labels.fields.allowMentorSelection.label }), jsx(TooltipProvider, { children: jsxs(Tooltip$1, { children: [jsx(TooltipTrigger, { "aria-label": t('tabsEmbedTab.moreInfoAllowMentorSelection'), children: jsx(Info$3, { className: "h-4 w-4 text-gray-400" }) }), jsx(TooltipContent, { className: "ibl-tooltip-content", children: jsx("p", { children: labels.fields.allowMentorSelection.tooltip }) })] }) })] }), jsx(CustomSwitch, { "data-testid": "embed-allow-mentor-selection-switch", checked: allowMentorSelection, onCheckedChange: setAllowMentorSelection, disabled: form.state.isSubmitting, "aria-label": allowMentorSelection
|
|
326728
326810
|
? t('tabsEmbedTab.allowMentorSelectionEnabled')
|
|
326729
|
-
: t('tabsEmbedTab.allowMentorSelectionDisabled') })] }),
|
|
326811
|
+
: t('tabsEmbedTab.allowMentorSelectionDisabled') })] }), jsxs("div", { className: "flex items-center justify-between", children: [jsxs("div", { className: "flex items-center gap-2", children: [jsx("span", { className: "text-sm font-medium text-[#646464]", children: labels.fields.allowFullscreen.label }), jsx(TooltipProvider, { children: jsxs(Tooltip$1, { children: [jsx(TooltipTrigger, { "aria-label": t('tabsEmbedTab.moreInfoAllowFullscreen'), children: jsx(Info$3, { className: "h-4 w-4 text-gray-400" }) }), jsx(TooltipContent, { className: "ibl-tooltip-content", children: jsx("p", { children: labels.fields.allowFullscreen.tooltip }) })] }) })] }), jsx(CustomSwitch, { "data-testid": "embed-allow-fullscreen-switch", checked: allowFullscreen, onCheckedChange: setAllowFullscreen, disabled: form.state.isSubmitting, "aria-label": allowFullscreen
|
|
326812
|
+
? t('tabsEmbedTab.allowFullscreenEnabled')
|
|
326813
|
+
: t('tabsEmbedTab.allowFullscreenDisabled') })] }), jsx("hr", { className: "my-4 border-t border-gray-200" }), jsx(form.Field, { name: "generateShareableLink", children: (field) => (jsxs("div", { className: "flex items-center justify-between", children: [jsxs("div", { className: "flex items-center gap-2", children: [jsx("span", { className: "text-sm font-medium text-[#646464]", children: labels.fields.shareableLink.label }), jsx(TooltipProvider, { children: jsxs(Tooltip$1, { children: [jsx(TooltipTrigger, { "aria-label": t('tabsEmbedTab.moreInfoShareableLink'), children: jsx(Info$3, { className: "h-4 w-4 text-gray-400" }) }), jsx(TooltipContent, { className: "ibl-tooltip-content", children: jsx("p", { children: labels.fields.shareableLink.tooltip }) })] }) })] }), isLoadingShareableLink ? (jsx(Spinner$1, {})) : (jsxs("div", { className: "flex", children: [jsx(RefreshCw, { onClick: handleRegenerateToken, className: "mr-2 cursor-pointer text-[#646464]" }), jsx(CustomSwitch, { checked: shareableToken && shareableToken.enabled, onCheckedChange: (checked) => handleShareableTokenToggle(checked), "aria-label": field.state.value
|
|
326730
326814
|
? t('tabsEmbedTab.shareableLinkEnabled')
|
|
326731
326815
|
: t('tabsEmbedTab.shareableLinkDisabled') })] }))] })) }), jsx("div", { children: shareableToken && (jsx("div", { className: "mb-4 w-full lg:w-[500px]", children: jsx(CopyCodeBlock, { code: `${window.location.origin}?mentor=${mentorId}&tenant=${tenantKey}&token=${shareableToken.token}` }) })) })] }), jsx("div", { className: "h-[75vh] overflow-hidden rounded-lg border bg-gray-50", children: jsx(form.Subscribe, { selector: (formState) => [formState.values.mode], children: ([mode]) => (jsx("iframe", { id: "embed-mentor-preview", title: "embed-mentor-preview", src: `${window.location.origin}${urls.getMentorPageUrl ? urls.getMentorPageUrl(tenantKey, mentorId) : `/platform/${tenantKey}/${mentorId}`}`, style: {
|
|
326732
326816
|
height: '100%',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iblai/iblai-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.37.0",
|
|
4
4
|
"description": "Unified JavaScript SDK for IBL.ai — re-exports data-layer, web-containers, and web-utils under a single package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"axios": "1.13.6",
|
|
77
77
|
"dotenv": "16.6.1",
|
|
78
78
|
"winston": "3.19.0",
|
|
79
|
-
"@iblai/data-layer": "1.30.1",
|
|
80
79
|
"@iblai/mcp": "1.29.1",
|
|
81
|
-
"@iblai/web-containers": "1.
|
|
80
|
+
"@iblai/web-containers": "1.42.0",
|
|
81
|
+
"@iblai/data-layer": "1.30.1",
|
|
82
82
|
"@iblai/web-utils": "2.8.0"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|