@meetelise/chat 1.20.205 → 1.20.207

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.
@@ -0,0 +1,57 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <code_scheme name="Project" version="173">
3
+ <HTMLCodeStyleSettings>
4
+ <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
5
+ </HTMLCodeStyleSettings>
6
+ <JSCodeStyleSettings version="0">
7
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
8
+ <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
9
+ <option name="FORCE_QUOTE_STYlE" value="true" />
10
+ <option name="ENFORCE_TRAILING_COMMA" value="Remove" />
11
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
12
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
13
+ </JSCodeStyleSettings>
14
+ <TypeScriptCodeStyleSettings version="0">
15
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
16
+ <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
17
+ <option name="FORCE_QUOTE_STYlE" value="true" />
18
+ <option name="ENFORCE_TRAILING_COMMA" value="Remove" />
19
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
20
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
21
+ </TypeScriptCodeStyleSettings>
22
+ <VueCodeStyleSettings>
23
+ <option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
24
+ <option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
25
+ </VueCodeStyleSettings>
26
+ <codeStyleSettings language="HTML">
27
+ <option name="SOFT_MARGINS" value="80" />
28
+ <indentOptions>
29
+ <option name="INDENT_SIZE" value="2" />
30
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
31
+ <option name="TAB_SIZE" value="2" />
32
+ </indentOptions>
33
+ </codeStyleSettings>
34
+ <codeStyleSettings language="JavaScript">
35
+ <option name="SOFT_MARGINS" value="80" />
36
+ <indentOptions>
37
+ <option name="INDENT_SIZE" value="2" />
38
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
39
+ <option name="TAB_SIZE" value="2" />
40
+ </indentOptions>
41
+ </codeStyleSettings>
42
+ <codeStyleSettings language="TypeScript">
43
+ <option name="SOFT_MARGINS" value="80" />
44
+ <indentOptions>
45
+ <option name="INDENT_SIZE" value="2" />
46
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
47
+ <option name="TAB_SIZE" value="2" />
48
+ </indentOptions>
49
+ </codeStyleSettings>
50
+ <codeStyleSettings language="Vue">
51
+ <option name="SOFT_MARGINS" value="80" />
52
+ <indentOptions>
53
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
54
+ </indentOptions>
55
+ </codeStyleSettings>
56
+ </code_scheme>
57
+ </component>
@@ -0,0 +1,5 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <state>
3
+ <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
+ </state>
5
+ </component>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,67 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
6
+ <component name="ChangeListManager">
7
+ <list default="true" id="8a49536e-718f-486f-a432-96e09a9aad1b" name="Changes" comment="">
8
+ <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/public/demo/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/public/demo/index.html" afterDir="false" />
10
+ <change beforePath="$PROJECT_DIR$/src/WebComponent/Scheduler/tour-scheduler.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/WebComponent/Scheduler/tour-scheduler.ts" afterDir="false" />
11
+ </list>
12
+ <option name="SHOW_DIALOG" value="false" />
13
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
14
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
15
+ <option name="LAST_RESOLUTION" value="IGNORE" />
16
+ </component>
17
+ <component name="Git.Settings">
18
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
19
+ </component>
20
+ <component name="MarkdownSettingsMigration">
21
+ <option name="stateVersion" value="1" />
22
+ </component>
23
+ <component name="ProjectColorInfo">{
24
+ &quot;associatedIndex&quot;: 0
25
+ }</component>
26
+ <component name="ProjectId" id="2de4xc4cpejeyTqwsCfYp8zg99D" />
27
+ <component name="ProjectViewState">
28
+ <option name="hideEmptyMiddlePackages" value="true" />
29
+ <option name="showLibraryContents" value="true" />
30
+ </component>
31
+ <component name="PropertiesComponent"><![CDATA[{
32
+ "keyToString": {
33
+ "RunOnceActivity.OpenProjectViewOnStart": "true",
34
+ "RunOnceActivity.ShowReadmeOnStart": "true",
35
+ "git-widget-placeholder": "add-tenant-occupied",
36
+ "last_opened_file_path": "/Users/colekingston/Desktop/chat-ui",
37
+ "node.js.detected.package.eslint": "true",
38
+ "node.js.detected.package.tslint": "true",
39
+ "node.js.selected.package.eslint": "(autodetect)",
40
+ "node.js.selected.package.tslint": "(autodetect)",
41
+ "nodejs_package_manager_path": "npm",
42
+ "ts.external.directory.path": "/Users/colekingston/Desktop/chat-ui/node_modules/typescript/lib",
43
+ "vue.rearranger.settings.migration": "true"
44
+ }
45
+ }]]></component>
46
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
47
+ <component name="TaskManager">
48
+ <task active="true" id="Default" summary="Default task">
49
+ <changelist id="8a49536e-718f-486f-a432-96e09a9aad1b" name="Changes" comment="" />
50
+ <created>1710355459321</created>
51
+ <option name="number" value="Default" />
52
+ <option name="presentableId" value="Default" />
53
+ <updated>1710355459321</updated>
54
+ <workItem from="1710355460813" duration="2821000" />
55
+ <workItem from="1713446762231" duration="3583000" />
56
+ </task>
57
+ <servers />
58
+ </component>
59
+ <component name="TypeScriptGeneratedFilesManager">
60
+ <option name="version" value="3" />
61
+ <option name="exactExcludedFiles">
62
+ <list>
63
+ <option value="$PROJECT_DIR$/src/MEChat.d.ts" />
64
+ </list>
65
+ </option>
66
+ </component>
67
+ </project>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.20.205",
3
+ "version": "1.20.207",
4
4
  "description": "",
5
5
  "main": "public/dist/index.js",
6
6
  "type": "module",
@@ -1143,7 +1143,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
1143
1143
  d="M17.835 13.1045C18.4839 11.5628 18.6332 9.85647 18.2621 8.22548C17.8909 6.5945 17.018 5.12084 15.7659 4.0117C14.5139 2.90256 12.9457 2.21372 11.2818 2.04201C9.618 1.87031 7.94218 2.22438 6.49 3.05445L5.498 1.31745C7.01563 0.450066 8.73419 -0.00418222 10.4822 2.90165e-05C12.2302 0.00424025 13.9466 0.466764 15.46 1.34145C19.95 3.93345 21.67 9.48345 19.577 14.1115L20.919 14.8855L16.754 17.0995L16.589 12.3855L17.835 13.1045ZM3.085 6.89845C2.43614 8.44015 2.28678 10.1464 2.65792 11.7774C3.02905 13.4084 3.90201 14.8821 5.15407 15.9912C6.40613 17.1003 7.97432 17.7892 9.63816 17.9609C11.302 18.1326 12.9778 17.7785 14.43 16.9485L15.422 18.6855C13.9044 19.5528 12.1858 20.0071 10.4378 20.0029C8.68979 19.9987 6.97344 19.5361 5.46 18.6615C0.97 16.0695 -0.75 10.5195 1.343 5.89145L0 5.11845L4.165 2.90445L4.33 7.61845L3.084 6.89945L3.085 6.89845Z"
1144
1144
  fill="#1E1E1E"
1145
1145
  />
1146
- </svg>`}render(){var e,t,n,i;const r=this.unitOptions.filter((e=>1===e.active)).filter((e=>!e.name.toLowerCase().includes("default")&&0===e.availabilityStage));if(this.hasDynamicSchedulingEnabled&&0===r.length)return U` <div
1146
+ </svg>`}render(){var e,t,n,i;const r=this.unitOptions.filter((e=>1===e.active)).filter((e=>!e.name.toLowerCase().includes("default")&&0===e.availabilityStage&&!e.occupied));if(this.hasDynamicSchedulingEnabled&&0===r.length)return U` <div
1147
1147
  id="tour-scheduler-inner-form"
1148
1148
  class="${Gn()({"tour-scheduler-full":!this.compactDesign&&!ln(),"tour-scheduler-compact":this.compactDesign&&!ln(),"tour-scheduler-mobile":ln()})}"
1149
1149
  >
@@ -4052,7 +4052,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
4052
4052
  />
4053
4053
  </svg>
4054
4054
  </button>
4055
- </div>`}};no.styles=[eo],to([ue({type:Number})],no.prototype,"right",void 0),to([ue({type:Number})],no.prototype,"bottom",void 0),to([ue({type:Number})],no.prototype,"top",void 0),to([ue({type:Number})],no.prototype,"left",void 0),to([ue({attribute:!0})],no.prototype,"isChatOpen",void 0),to([ue({attribute:!0})],no.prototype,"onClickCloseChat",void 0),to([ue({attribute:!0})],no.prototype,"onClickOpenChat",void 0),no=to([ae("healthcare-launcher")],no);var io=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ro=class extends re{constructor(){super(...arguments),this.healthcareId="",this.right=0,this.bottom=0,this.top=0,this.left=0,this.launcher=null,this.currentLeadSource=null,this.displayPubnubChat=!1,this.myPubnub=null,this.requiresConsent=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.isLoading=!0,this.launcherRef=xe(),this.firstUpdated=async()=>{console.warn("MeetElise Chat is in maintenance mode. Chat icon will not appear.")},this.initializeChatVariables=async()=>{this.isLoading=!0;const e=Er(this.healthcareId),t=Rr(this.healthcareId,e)?e:Nr(this.healthcareId,!1);if(!t.leadId)throw new Error("Lead ID is null");this.myPubnub=new Pr(this.healthcareId,null,"",this.currentLeadSource,t.leadId),t.initiatedChat&&await this.myPubnub.initializePubnub(e),ln()||(this.displayPubnubChat=!0),this.attachOnClickToLauncher(),this.isLoading=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0})}}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),Ir(this.healthcareId),this.myPubnub=null,this.displayPubnubChat=!1,await this.initializeChatVariables()}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),super.disconnectedCallback()}render(){var e;return er(),this.isLoading?U``:U`
4055
+ </div>`}};no.styles=[eo],to([ue({type:Number})],no.prototype,"right",void 0),to([ue({type:Number})],no.prototype,"bottom",void 0),to([ue({type:Number})],no.prototype,"top",void 0),to([ue({type:Number})],no.prototype,"left",void 0),to([ue({attribute:!0})],no.prototype,"isChatOpen",void 0),to([ue({attribute:!0})],no.prototype,"onClickCloseChat",void 0),to([ue({attribute:!0})],no.prototype,"onClickOpenChat",void 0),no=to([ae("healthcare-launcher")],no);var io=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ro=class extends re{constructor(){super(...arguments),this.healthcareId="",this.right=0,this.bottom=0,this.top=0,this.left=0,this.launcher=null,this.currentLeadSource=null,this.displayPubnubChat=!1,this.myPubnub=null,this.requiresConsent=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.isLoading=!0,this.launcherRef=xe(),this.firstUpdated=async()=>{await this.initializeChatVariables()},this.initializeChatVariables=async()=>{this.isLoading=!0;const e=Er(this.healthcareId),t=Rr(this.healthcareId,e)?e:Nr(this.healthcareId,!1);if(!t.leadId)throw new Error("Lead ID is null");this.myPubnub=new Pr(this.healthcareId,null,"",this.currentLeadSource,t.leadId),t.initiatedChat&&await this.myPubnub.initializePubnub(e),ln()||(this.displayPubnubChat=!0),this.attachOnClickToLauncher(),this.isLoading=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0})}}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),Ir(this.healthcareId),this.myPubnub=null,this.displayPubnubChat=!1,await this.initializeChatVariables()}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),super.disconnectedCallback()}render(){var e;return er(),this.isLoading?U``:U`
4056
4056
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
4057
4057
  <div id="aria-describe-info" style="display: none;">
4058
4058
  EliseAI widget that allows you to chat with a virtual assistant, book
@@ -927,7 +927,8 @@ export class TourScheduler extends LitElement {
927
927
  const availableUnits = activeUnits.filter(
928
928
  (unit) =>
929
929
  !unit.name.toLowerCase().includes("default") &&
930
- unit.availabilityStage === 0
930
+ unit.availabilityStage === 0 &&
931
+ !unit.occupied
931
932
  );
932
933
 
933
934
  if (this.hasDynamicSchedulingEnabled && availableUnits.length === 0) {
@@ -116,7 +116,7 @@ export class HealthChat extends LitElement {
116
116
  launcherRef: Ref<Launcher> = createRef();
117
117
 
118
118
  firstUpdated = async (): Promise<void> => {
119
- const isInMaintenanceMode = true; // TODO: check
119
+ const isInMaintenanceMode = false; // TODO: check
120
120
  if (isInMaintenanceMode) {
121
121
  // eslint-disable-next-line no-console
122
122
  console.warn(
@@ -42,6 +42,7 @@ export type UnitV2 = {
42
42
  layout: string;
43
43
  availabilityStage: number;
44
44
  active: number;
45
+ occupied: boolean;
45
46
  };
46
47
 
47
48
  /**