@mypatientspace/chatbot-widget 1.0.36 → 1.0.37
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.
|
@@ -13190,23 +13190,15 @@ const Lp = R.memo(function() {
|
|
|
13190
13190
|
panel: L`
|
|
13191
13191
|
display: flex;
|
|
13192
13192
|
flex-direction: column;
|
|
13193
|
+
padding: ${S.spacing.xl};
|
|
13193
13194
|
background: ${S.colors.pageBackground};
|
|
13194
13195
|
position: relative;
|
|
13195
13196
|
height: 100%;
|
|
13196
|
-
|
|
13197
|
-
|
|
13198
|
-
@media (max-width: ${S.breakpoints.mobile}) {
|
|
13199
|
-
height: auto;
|
|
13200
|
-
min-height: ${S.layout.minPreviewHeight};
|
|
13201
|
-
}
|
|
13197
|
+
min-height: ${S.layout.minPreviewHeight};
|
|
13198
|
+
overflow: hidden;
|
|
13202
13199
|
`,
|
|
13203
13200
|
header: L`
|
|
13204
|
-
|
|
13205
|
-
top: 0;
|
|
13206
|
-
z-index: 10;
|
|
13207
|
-
background: ${S.colors.pageBackground};
|
|
13208
|
-
padding: ${S.spacing.xl};
|
|
13209
|
-
padding-bottom: ${S.spacing.md};
|
|
13201
|
+
margin-bottom: ${S.spacing.md};
|
|
13210
13202
|
flex-shrink: 0;
|
|
13211
13203
|
`,
|
|
13212
13204
|
title: L`
|
|
@@ -13221,8 +13213,7 @@ const Lp = R.memo(function() {
|
|
|
13221
13213
|
`,
|
|
13222
13214
|
container: L`
|
|
13223
13215
|
flex: 1;
|
|
13224
|
-
min-height:
|
|
13225
|
-
margin: 0 ${S.spacing.xl} ${S.spacing.xl};
|
|
13216
|
+
min-height: 500px;
|
|
13226
13217
|
background: ${S.colors.panelBackground};
|
|
13227
13218
|
border-radius: ${S.borderRadius.xl};
|
|
13228
13219
|
box-shadow: 0 4px 24px rgba(60, 77, 115, 0.1);
|
|
@@ -13232,6 +13223,7 @@ const Lp = R.memo(function() {
|
|
|
13232
13223
|
/* Override widget's fixed positioning to absolute within container */
|
|
13233
13224
|
.chatbot-widget-container {
|
|
13234
13225
|
position: absolute !important;
|
|
13226
|
+
inset: 0;
|
|
13235
13227
|
}
|
|
13236
13228
|
`,
|
|
13237
13229
|
containerFloating: L`
|
|
@@ -13298,12 +13290,12 @@ const Lp = R.memo(function() {
|
|
|
13298
13290
|
display: grid;
|
|
13299
13291
|
grid-template-columns: ${S.layout.controlsPanelWidth} 1fr;
|
|
13300
13292
|
height: 100%;
|
|
13293
|
+
min-height: ${S.layout.minPreviewHeight};
|
|
13301
13294
|
width: 100%;
|
|
13302
13295
|
|
|
13303
13296
|
@media (max-width: ${S.breakpoints.mobile}) {
|
|
13304
13297
|
grid-template-columns: 1fr;
|
|
13305
13298
|
height: auto;
|
|
13306
|
-
min-height: 100%;
|
|
13307
13299
|
}
|
|
13308
13300
|
`,
|
|
13309
13301
|
layoutPreviewOnly: L`
|
|
@@ -14038,7 +14030,7 @@ const gn = () => {
|
|
|
14038
14030
|
_ && /* @__PURE__ */ K.jsxs(hb, { fontFamily: s.fontFamily, children: [
|
|
14039
14031
|
_,
|
|
14040
14032
|
" v",
|
|
14041
|
-
"1.0.
|
|
14033
|
+
"1.0.37"
|
|
14042
14034
|
] })
|
|
14043
14035
|
] })
|
|
14044
14036
|
] }),
|
|
@@ -450,22 +450,14 @@ Error generating stack: `+a.message+`
|
|
|
450
450
|
`},sy=R.memo(function({showJsonEditor:o=!0,showDisplaySettings:s=!0,showSessionSettings:r=!0,showAppearanceSettings:d=!0,showThemeSettings:g=!0,showContentSettings:v=!0,showQuickActions:M=!0}){const{viewMode:x,setViewMode:p,widgetConfig:z}=Re();return ct("div",{css:Ie.panel,children:[ct("div",{css:Ie.header,children:[j("h1",{css:Ie.title,children:"Widget Demo"}),j("p",{css:Ie.subtitle,children:"Configure and preview the chatbot widget"}),o&&ct("div",{css:Ie.modeSwitcher,children:[ct("button",{type:"button",css:[Ie.modeButton,x==="form"&&Ie.modeButtonActive],onClick:()=>p("form"),children:[j(Lm,{size:14}),"Form"]}),ct("button",{type:"button",css:[Ie.modeButton,x==="json"&&Ie.modeButtonActive],onClick:()=>p("json"),children:[j(Xm,{size:14}),"JSON"]})]})]}),o&&x==="json"?j(fy,{}):ct("div",{css:Ie.formContainer,children:[s&&j(Pm,{}),r&&j(ty,{}),d&&j(ey,{}),g&&ct(_i,{children:[j(ly,{}),z.floatingMode&&j(ay,{})]}),v&&ct(_i,{children:[j(ny,{}),j(iy,{}),j(uy,{})]}),M&&j(cy,{})]})]})}),Aa={panel:X`
|
|
451
451
|
display: flex;
|
|
452
452
|
flex-direction: column;
|
|
453
|
+
padding: ${S.spacing.xl};
|
|
453
454
|
background: ${S.colors.pageBackground};
|
|
454
455
|
position: relative;
|
|
455
456
|
height: 100%;
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
@media (max-width: ${S.breakpoints.mobile}) {
|
|
459
|
-
height: auto;
|
|
460
|
-
min-height: ${S.layout.minPreviewHeight};
|
|
461
|
-
}
|
|
457
|
+
min-height: ${S.layout.minPreviewHeight};
|
|
458
|
+
overflow: hidden;
|
|
462
459
|
`,header:X`
|
|
463
|
-
|
|
464
|
-
top: 0;
|
|
465
|
-
z-index: 10;
|
|
466
|
-
background: ${S.colors.pageBackground};
|
|
467
|
-
padding: ${S.spacing.xl};
|
|
468
|
-
padding-bottom: ${S.spacing.md};
|
|
460
|
+
margin-bottom: ${S.spacing.md};
|
|
469
461
|
flex-shrink: 0;
|
|
470
462
|
`,title:X`
|
|
471
463
|
font-size: ${S.fontSize.xxl};
|
|
@@ -477,8 +469,7 @@ Error generating stack: `+a.message+`
|
|
|
477
469
|
color: ${S.colors.textLight};
|
|
478
470
|
`,container:X`
|
|
479
471
|
flex: 1;
|
|
480
|
-
min-height:
|
|
481
|
-
margin: 0 ${S.spacing.xl} ${S.spacing.xl};
|
|
472
|
+
min-height: 500px;
|
|
482
473
|
background: ${S.colors.panelBackground};
|
|
483
474
|
border-radius: ${S.borderRadius.xl};
|
|
484
475
|
box-shadow: 0 4px 24px rgba(60, 77, 115, 0.1);
|
|
@@ -488,6 +479,7 @@ Error generating stack: `+a.message+`
|
|
|
488
479
|
/* Override widget's fixed positioning to absolute within container */
|
|
489
480
|
.chatbot-widget-container {
|
|
490
481
|
position: absolute !important;
|
|
482
|
+
inset: 0;
|
|
491
483
|
}
|
|
492
484
|
`,containerFloating:X`
|
|
493
485
|
background: transparent;
|
|
@@ -510,12 +502,12 @@ Error generating stack: `+a.message+`
|
|
|
510
502
|
display: grid;
|
|
511
503
|
grid-template-columns: ${S.layout.controlsPanelWidth} 1fr;
|
|
512
504
|
height: 100%;
|
|
505
|
+
min-height: ${S.layout.minPreviewHeight};
|
|
513
506
|
width: 100%;
|
|
514
507
|
|
|
515
508
|
@media (max-width: ${S.breakpoints.mobile}) {
|
|
516
509
|
grid-template-columns: 1fr;
|
|
517
510
|
height: auto;
|
|
518
|
-
min-height: 100%;
|
|
519
511
|
}
|
|
520
512
|
`,layoutPreviewOnly:X`
|
|
521
513
|
grid-template-columns: 1fr;
|
|
@@ -599,7 +591,7 @@ Error generating stack: `+a.message+`
|
|
|
599
591
|
&:active {
|
|
600
592
|
background-color: rgba(255, 255, 255, 0.4);
|
|
601
593
|
}
|
|
602
|
-
`,Hy=()=>{const{close:u,config:o,theme:s,assistant:r}=_a(),d=o.headerTitle||r?.chatUiConfig?.avatarTitle||"Chat",g=o.headerIcon||r?.chatUiConfig?.avatarImage?.iconURL||r?.chatUiConfig?.avatarImage?.thumbnailURL,v=o.headerSubtitle||r?.chatUiConfig?.headerSubtitle,M=o.brandingText||r?.chatUiConfig?.brandingText;return k.jsxs(_y,{theme:s,children:[k.jsxs(My,{children:[g&&k.jsx(Oy,{theme:s,hasCustomIcon:!0,children:k.jsx(Dy,{src:g,alt:""})}),k.jsxs(Ry,{children:[k.jsx(By,{fontFamily:s.fontFamily,children:d}),v&&k.jsx(Uy,{fontFamily:s.fontFamily,children:v}),M&&k.jsxs(Ny,{fontFamily:s.fontFamily,children:[M," v","1.0.
|
|
594
|
+
`,Hy=()=>{const{close:u,config:o,theme:s,assistant:r}=_a(),d=o.headerTitle||r?.chatUiConfig?.avatarTitle||"Chat",g=o.headerIcon||r?.chatUiConfig?.avatarImage?.iconURL||r?.chatUiConfig?.avatarImage?.thumbnailURL,v=o.headerSubtitle||r?.chatUiConfig?.headerSubtitle,M=o.brandingText||r?.chatUiConfig?.brandingText;return k.jsxs(_y,{theme:s,children:[k.jsxs(My,{children:[g&&k.jsx(Oy,{theme:s,hasCustomIcon:!0,children:k.jsx(Dy,{src:g,alt:""})}),k.jsxs(Ry,{children:[k.jsx(By,{fontFamily:s.fontFamily,children:d}),v&&k.jsx(Uy,{fontFamily:s.fontFamily,children:v}),M&&k.jsxs(Ny,{fontFamily:s.fontFamily,children:[M," v","1.0.37"]})]})]}),o.floatingMode&&k.jsx(wy,{theme:s,onClick:u,"aria-label":"Minimize chat",children:k.jsx(Mf,{size:20})})]})},qy=bt.div`
|
|
603
595
|
display: flex;
|
|
604
596
|
gap: 8px;
|
|
605
597
|
padding: 12px 16px;
|
package/package.json
CHANGED