@mypatientspace/chatbot-widget 1.0.35 → 1.0.36
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,11 +13190,10 @@ const Lp = R.memo(function() {
|
|
|
13190
13190
|
panel: L`
|
|
13191
13191
|
display: flex;
|
|
13192
13192
|
flex-direction: column;
|
|
13193
|
-
padding: ${S.spacing.xl};
|
|
13194
13193
|
background: ${S.colors.pageBackground};
|
|
13195
13194
|
position: relative;
|
|
13196
13195
|
height: 100%;
|
|
13197
|
-
overflow:
|
|
13196
|
+
overflow: auto;
|
|
13198
13197
|
|
|
13199
13198
|
@media (max-width: ${S.breakpoints.mobile}) {
|
|
13200
13199
|
height: auto;
|
|
@@ -13202,7 +13201,12 @@ const Lp = R.memo(function() {
|
|
|
13202
13201
|
}
|
|
13203
13202
|
`,
|
|
13204
13203
|
header: L`
|
|
13205
|
-
|
|
13204
|
+
position: sticky;
|
|
13205
|
+
top: 0;
|
|
13206
|
+
z-index: 10;
|
|
13207
|
+
background: ${S.colors.pageBackground};
|
|
13208
|
+
padding: ${S.spacing.xl};
|
|
13209
|
+
padding-bottom: ${S.spacing.md};
|
|
13206
13210
|
flex-shrink: 0;
|
|
13207
13211
|
`,
|
|
13208
13212
|
title: L`
|
|
@@ -13217,7 +13221,8 @@ const Lp = R.memo(function() {
|
|
|
13217
13221
|
`,
|
|
13218
13222
|
container: L`
|
|
13219
13223
|
flex: 1;
|
|
13220
|
-
min-height:
|
|
13224
|
+
min-height: 400px;
|
|
13225
|
+
margin: 0 ${S.spacing.xl} ${S.spacing.xl};
|
|
13221
13226
|
background: ${S.colors.panelBackground};
|
|
13222
13227
|
border-radius: ${S.borderRadius.xl};
|
|
13223
13228
|
box-shadow: 0 4px 24px rgba(60, 77, 115, 0.1);
|
|
@@ -14033,7 +14038,7 @@ const gn = () => {
|
|
|
14033
14038
|
_ && /* @__PURE__ */ K.jsxs(hb, { fontFamily: s.fontFamily, children: [
|
|
14034
14039
|
_,
|
|
14035
14040
|
" v",
|
|
14036
|
-
"1.0.
|
|
14041
|
+
"1.0.36"
|
|
14037
14042
|
] })
|
|
14038
14043
|
] })
|
|
14039
14044
|
] }),
|
|
@@ -450,18 +450,22 @@ 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};
|
|
454
453
|
background: ${S.colors.pageBackground};
|
|
455
454
|
position: relative;
|
|
456
455
|
height: 100%;
|
|
457
|
-
overflow:
|
|
456
|
+
overflow: auto;
|
|
458
457
|
|
|
459
458
|
@media (max-width: ${S.breakpoints.mobile}) {
|
|
460
459
|
height: auto;
|
|
461
460
|
min-height: ${S.layout.minPreviewHeight};
|
|
462
461
|
}
|
|
463
462
|
`,header:X`
|
|
464
|
-
|
|
463
|
+
position: sticky;
|
|
464
|
+
top: 0;
|
|
465
|
+
z-index: 10;
|
|
466
|
+
background: ${S.colors.pageBackground};
|
|
467
|
+
padding: ${S.spacing.xl};
|
|
468
|
+
padding-bottom: ${S.spacing.md};
|
|
465
469
|
flex-shrink: 0;
|
|
466
470
|
`,title:X`
|
|
467
471
|
font-size: ${S.fontSize.xxl};
|
|
@@ -473,7 +477,8 @@ Error generating stack: `+a.message+`
|
|
|
473
477
|
color: ${S.colors.textLight};
|
|
474
478
|
`,container:X`
|
|
475
479
|
flex: 1;
|
|
476
|
-
min-height:
|
|
480
|
+
min-height: 400px;
|
|
481
|
+
margin: 0 ${S.spacing.xl} ${S.spacing.xl};
|
|
477
482
|
background: ${S.colors.panelBackground};
|
|
478
483
|
border-radius: ${S.borderRadius.xl};
|
|
479
484
|
box-shadow: 0 4px 24px rgba(60, 77, 115, 0.1);
|
|
@@ -594,7 +599,7 @@ Error generating stack: `+a.message+`
|
|
|
594
599
|
&:active {
|
|
595
600
|
background-color: rgba(255, 255, 255, 0.4);
|
|
596
601
|
}
|
|
597
|
-
`,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.
|
|
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.36"]})]})]}),o.floatingMode&&k.jsx(wy,{theme:s,onClick:u,"aria-label":"Minimize chat",children:k.jsx(Mf,{size:20})})]})},qy=bt.div`
|
|
598
603
|
display: flex;
|
|
599
604
|
gap: 8px;
|
|
600
605
|
padding: 12px 16px;
|
package/package.json
CHANGED