@meetelise/chat 1.25.0 → 1.25.2
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/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +79 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +111 -0
- package/coverage/lcov-report/index.js.html +17093 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +170 -0
- package/coverage/lcov.info +9986 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/.eslintignore +0 -2
- package/.eslintrc.cjs +0 -23
- package/.github/pull_request_template.md +0 -61
- package/.github/workflows/pull.yml +0 -46
- package/.github/workflows/release.yml +0 -23
- package/.husky/commit-msg +0 -2
- package/.husky/pre-commit +0 -4
- package/.idea/codeStyles/Project.xml +0 -57
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -67
- package/.prettierignore +0 -2
- package/.prettierrc.json +0 -1
- package/.vscode/settings.json +0 -13
- package/CONTRIBUTING.md +0 -36
- package/public/demo/index.html +0 -347
- package/public/demo/secret.html +0 -63
- package/src/MyPubnub.ts +0 -792
- package/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section-styles.ts +0 -86
- package/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section.ts +0 -94
- package/src/WebComponent/FeeCalculator/components/fee-item/fee-item-styles.ts +0 -47
- package/src/WebComponent/FeeCalculator/components/fee-item/fee-item.ts +0 -50
- package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles.ts +0 -46
- package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.ts +0 -70
- package/src/WebComponent/FeeCalculator/components/index.ts +0 -3
- package/src/WebComponent/FeeCalculator/components/promo-card/promo-card-styles.ts +0 -39
- package/src/WebComponent/FeeCalculator/components/promo-card/promo-card.ts +0 -39
- package/src/WebComponent/FeeCalculator/fee-calculator-styles.ts +0 -280
- package/src/WebComponent/FeeCalculator/fee-calculator.ts +0 -256
- package/src/WebComponent/FeeCalculator/index.ts +0 -4
- package/src/WebComponent/FeeCalculator/model/building-fee.ts +0 -83
- package/src/WebComponent/FeeCalculator/model/transaction-category.ts +0 -23
- package/src/WebComponent/LeadSourceClient.ts +0 -332
- package/src/WebComponent/MEChat.css +0 -5
- package/src/WebComponent/OfficeHours.ts +0 -73
- package/src/WebComponent/Scheduler/date-picker.ts +0 -405
- package/src/WebComponent/Scheduler/time-picker.ts +0 -190
- package/src/WebComponent/Scheduler/tour-scheduler.ts +0 -1352
- package/src/WebComponent/Scheduler/tour-type-option.ts +0 -112
- package/src/WebComponent/Scheduler/tourSchedulerStyles.ts +0 -418
- package/src/WebComponent/actions/InputStyles.ts +0 -57
- package/src/WebComponent/actions/action-confirm-button.ts +0 -125
- package/src/WebComponent/actions/call-us-window.ts +0 -445
- package/src/WebComponent/actions/collapse-expand-button.ts +0 -65
- package/src/WebComponent/actions/details-window.ts +0 -150
- package/src/WebComponent/actions/email-us-window.ts +0 -555
- package/src/WebComponent/actions/formatPhoneNumber.ts +0 -72
- package/src/WebComponent/actions/minimize-expand-button.ts +0 -93
- package/src/WebComponent/chat-additional-actions.ts +0 -135
- package/src/WebComponent/health-chat.ts +0 -270
- package/src/WebComponent/healthchat-styles.ts +0 -119
- package/src/WebComponent/icons/ApplyOutlineIcon.ts +0 -22
- package/src/WebComponent/icons/BookTourOutlineIcon.ts +0 -13
- package/src/WebComponent/icons/CalculatorOutlineIcon.ts +0 -22
- package/src/WebComponent/icons/ChatOutlineIcon.ts +0 -10
- package/src/WebComponent/icons/ChevronLeftIcon.ts +0 -7
- package/src/WebComponent/icons/ChevronRightIcon.ts +0 -7
- package/src/WebComponent/icons/ContactResidentIcon.ts +0 -9
- package/src/WebComponent/icons/DollarOutlineIcon.ts +0 -18
- package/src/WebComponent/icons/EmailOutlineIcon.ts +0 -7
- package/src/WebComponent/icons/HeyThereEmojiIcon.ts +0 -12
- package/src/WebComponent/icons/PhoneOutlineIcon.ts +0 -7
- package/src/WebComponent/icons/SendMessageIcon.ts +0 -17
- package/src/WebComponent/icons/TourSelfGuidedIcon.ts +0 -17
- package/src/WebComponent/icons/TourVirtuallyIcon.ts +0 -17
- package/src/WebComponent/icons/TourWithAgentIcon.ts +0 -17
- package/src/WebComponent/icons/XOutlineIcon.ts +0 -8
- package/src/WebComponent/index.ts +0 -2
- package/src/WebComponent/launcher/Launcher.ts +0 -1193
- package/src/WebComponent/launcher/launcherStyles.ts +0 -500
- package/src/WebComponent/launcher/mobile-launcher.ts +0 -159
- package/src/WebComponent/launcher/typeEmojiStyles.ts +0 -161
- package/src/WebComponent/launcher/typeMiniStyles.ts +0 -60
- package/src/WebComponent/launcher/typeMobileStyles.ts +0 -50
- package/src/WebComponent/leasing-chat-styles.ts +0 -114
- package/src/WebComponent/me-chat.ts +0 -1257
- package/src/WebComponent/me-select.ts +0 -322
- package/src/WebComponent/mini-loader.ts +0 -28
- package/src/WebComponent/pubnub-chat-styles.ts +0 -204
- package/src/WebComponent/pubnub-chat.ts +0 -928
- package/src/WebComponent/pubnub-media.ts +0 -208
- package/src/WebComponent/pubnub-message-styles.ts +0 -54
- package/src/WebComponent/pubnub-message.ts +0 -431
- package/src/WebComponent/simple-launcher/simple-launcher-styles.ts +0 -34
- package/src/WebComponent/simple-launcher/simple-launcher.ts +0 -100
- package/src/WebComponent/utilities-chat.ts +0 -270
- package/src/WebComponent/utilities-styles.ts +0 -110
- package/src/WebComponent/utils.ts +0 -82
- package/src/analytics.ts +0 -217
- package/src/assetUrls.ts +0 -6
- package/src/disclaimers.ts +0 -58
- package/src/fetchBuildingABTestType.ts +0 -21
- package/src/fetchBuildingInfo.ts +0 -87
- package/src/fetchBuildingWebchatView.ts +0 -154
- package/src/fetchFeatureFlag.ts +0 -250
- package/src/fetchLeadSources.ts +0 -98
- package/src/fetchPhoneNumberFromSource.ts +0 -31
- package/src/fetchWebchatPreferences.ts +0 -54
- package/src/getAvailabilities.ts +0 -174
- package/src/getBuildingPhoneNumber.ts +0 -26
- package/src/getShouldAllowScheduling.ts +0 -16
- package/src/getShouldShowWebchat.ts +0 -114
- package/src/getTimezoneString.ts +0 -39
- package/src/globals.ts +0 -1
- package/src/gtm.ts +0 -17
- package/src/handleChatId.ts +0 -101
- package/src/insertDNIIntoWebsite.ts +0 -146
- package/src/insertLeadSourceIntoSchedulerLinks.ts +0 -71
- package/src/main/MEChat.test.ts +0 -110
- package/src/main/MEChat.ts +0 -404
- package/src/main/utils.ts +0 -70
- package/src/postLeadSources.ts +0 -44
- package/src/rentgrata.ts +0 -74
- package/src/replaceSelectButtonsWithNewLink.ts +0 -68
- package/src/services/fees/fetchBuildingFees.ts +0 -28
- package/src/svgIcons.ts +0 -14
- package/src/themes.ts +0 -65
- package/src/types/rest-sdk.types.ts +0 -13
- package/src/types/webchat-no-show-reason.ts +0 -6
- package/src/utils.ts +0 -121
- package/tsconfig.json +0 -84
- package/web-test-runner.config.js +0 -10
- package/webpack.config.cjs +0 -48
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./src/main/MEChat";
|
package/package.json
CHANGED
package/.eslintignore
DELETED
package/.eslintrc.cjs
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* eslint-env node */
|
|
2
|
-
module.exports = {
|
|
3
|
-
env: {
|
|
4
|
-
browser: true,
|
|
5
|
-
es2021: true,
|
|
6
|
-
node: true,
|
|
7
|
-
},
|
|
8
|
-
extends: [
|
|
9
|
-
"eslint:recommended",
|
|
10
|
-
"plugin:@typescript-eslint/recommended",
|
|
11
|
-
"plugin:lit/recommended",
|
|
12
|
-
"prettier",
|
|
13
|
-
],
|
|
14
|
-
parser: "@typescript-eslint/parser",
|
|
15
|
-
parserOptions: {
|
|
16
|
-
ecmaVersion: 12,
|
|
17
|
-
sourceType: "module",
|
|
18
|
-
},
|
|
19
|
-
plugins: ["@typescript-eslint"],
|
|
20
|
-
rules: {
|
|
21
|
-
"no-console": "warn",
|
|
22
|
-
},
|
|
23
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# Issue Checklist
|
|
2
|
-
|
|
3
|
-
**this is important because webchat goes down far too frequently from a variety of sources (i.e. bad merges, chat provider issues, backend changes)**
|
|
4
|
-
|
|
5
|
-
## Basic Popup Checks
|
|
6
|
-
|
|
7
|
-
- [ ] On click 'Chat with us', chat popup opens
|
|
8
|
-
- [ ] On click 'Email an Agent', email form pops up
|
|
9
|
-
- [ ] On click 'Call or text us', call and/or text us popup opens
|
|
10
|
-
- [ ] On click 'Book a tour', booking tour popup with calendar view opens
|
|
11
|
-
|
|
12
|
-
## Email an Agent Form
|
|
13
|
-
|
|
14
|
-
**Applies only if Email widget is enabled for building**
|
|
15
|
-
|
|
16
|
-
- [ ] The form should require the lead's name, email address, and phone number. Message is optional.
|
|
17
|
-
- [ ] Upon submission, the form should create a Guest Card (GC) with the lead's information.
|
|
18
|
-
- [ ] The marketing source should be correctly logged on the GC (the source should ‘property-website’ AND whatever attribute the lead selected in the dropdown)
|
|
19
|
-
|
|
20
|
-
## Web conversation
|
|
21
|
-
|
|
22
|
-
**Applies only if webchat applied to building**
|
|
23
|
-
|
|
24
|
-
- [ ] Chat widget should be responsive to questions asked
|
|
25
|
-
- [ ] Chat widget should accept a text input
|
|
26
|
-
- [ ] AI should provide appropriate responses based on the user's message
|
|
27
|
-
- [ ] Typing indicator should appear while lead is waiting back for response
|
|
28
|
-
|
|
29
|
-
## Booking a Tour
|
|
30
|
-
|
|
31
|
-
**Applies only if scheduling widget is enabled for the building**
|
|
32
|
-
|
|
33
|
-
- [ ] Chat widget should provide an option to book a tour
|
|
34
|
-
- [ ] The available tour types should be displayed based on the community offerings.
|
|
35
|
-
- [ ] If there is only a single tour type offered, then that should be automatically selected
|
|
36
|
-
- [ ] The lead should be able to select a tour type, date, and time.
|
|
37
|
-
- [ ] The lead's layout and unit preferences should be recorded and passed through on the GC.
|
|
38
|
-
|
|
39
|
-
## Marketing Source Attribution
|
|
40
|
-
|
|
41
|
-
**Behavior depends on this flag: https://app.launchdarkly.com/default/production/features/webchat-marketing-source-dropdown-configuration/targeting**
|
|
42
|
-
|
|
43
|
-
- [ ] We grab the source from `utm_source` in the url’s query parameters. So if you want it to be “Zillow” add `utm_source=zillow` to query parameters
|
|
44
|
-
- [ ] If flag set to “never”, marketing source dropdown should never appear
|
|
45
|
-
- [ ] If flag set to “always”, marketing source dropdown should always appear
|
|
46
|
-
- [ ] If flag set to “on-attribution-failure”, marketing source dropdown should appear if we fail to attribute the originating source.
|
|
47
|
-
|
|
48
|
-
## Dynamic Number Insertion
|
|
49
|
-
|
|
50
|
-
**Behavior depends on this flag: https://app.launchdarkly.com/default/production/features/webchat-marketing-source-dropdown-configuration/targeting**
|
|
51
|
-
|
|
52
|
-
- [ ] We grab the source from `utm_source` in the url’s query parameters. So if you want it to be “Zillow” add `utm_source=zillow` to query parameters
|
|
53
|
-
- [ ] If flag set to “never”, marketing source dropdown should never appear
|
|
54
|
-
- [ ] If flag set to “always”, marketing source dropdown should always appear
|
|
55
|
-
- [ ] If flag set to “on-attribution-failure”, marketing source dropdown should appear if we fail to attribute the originating source.
|
|
56
|
-
|
|
57
|
-
## Misc Checks
|
|
58
|
-
|
|
59
|
-
- [ ] The chat widget should adapt to various screen sizes and devices without compromising functionality or user experience.
|
|
60
|
-
- [ ] The chat widget should follow web accessibility guidelines (WCAG and ADA) to ensure that users with disabilities can interact with it effectively.
|
|
61
|
-
- [ ] The widget should support customization to match the company's branding and website design.
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
name: Pull Request CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches: main
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
commit-messages:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
steps:
|
|
11
|
-
- uses: actions/checkout@v2
|
|
12
|
-
with:
|
|
13
|
-
# we actually need "github.event.pull_request.commits + 1" but
|
|
14
|
-
# actions doesn't do math
|
|
15
|
-
fetch-depth: 0
|
|
16
|
-
- uses: actions/setup-node@v2
|
|
17
|
-
with:
|
|
18
|
-
cache: npm
|
|
19
|
-
- run: npm ci
|
|
20
|
-
lint:
|
|
21
|
-
runs-on: ubuntu-latest
|
|
22
|
-
steps:
|
|
23
|
-
- uses: actions/checkout@v2
|
|
24
|
-
- uses: actions/setup-node@v2
|
|
25
|
-
with:
|
|
26
|
-
cache: npm
|
|
27
|
-
- run: npm ci
|
|
28
|
-
- run: npm run lint -- --max-warnings 0
|
|
29
|
-
test:
|
|
30
|
-
runs-on: ubuntu-latest
|
|
31
|
-
steps:
|
|
32
|
-
- uses: actions/checkout@v2
|
|
33
|
-
- uses: actions/setup-node@v2
|
|
34
|
-
with:
|
|
35
|
-
cache: npm
|
|
36
|
-
- run: npm ci
|
|
37
|
-
- run: npm test -- --coverage
|
|
38
|
-
build:
|
|
39
|
-
runs-on: ubuntu-latest
|
|
40
|
-
steps:
|
|
41
|
-
- uses: actions/checkout@v2
|
|
42
|
-
- uses: actions/setup-node@v2
|
|
43
|
-
with:
|
|
44
|
-
cache: npm
|
|
45
|
-
- run: npm ci
|
|
46
|
-
- run: npm run build
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
name: Semantic Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: main
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
lint-test-release:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
steps:
|
|
11
|
-
- uses: actions/checkout@v2
|
|
12
|
-
- uses: actions/setup-node@v2
|
|
13
|
-
with:
|
|
14
|
-
cache: npm
|
|
15
|
-
- run: npm ci
|
|
16
|
-
- run: npm run lint -- --max-warnings 0
|
|
17
|
-
- run: npm test -- --coverage
|
|
18
|
-
- run: npx semantic-release
|
|
19
|
-
env:
|
|
20
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
21
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
22
|
-
LAUNCHDARKLY_CLIENT_ID: "6119b3a2ceeceb24f45c7e66"
|
|
23
|
-
X_SECURITY_HEADER: "JRL8jV4VcSCwOSir5gWkpgNLfKghmhBG"
|
package/.husky/commit-msg
DELETED
package/.husky/pre-commit
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
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>
|
package/.idea/vcs.xml
DELETED
package/.idea/workspace.xml
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
"associatedIndex": 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/.prettierignore
DELETED
package/.prettierrc.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
package/.vscode/settings.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
3
|
-
"editor.formatOnSave": false,
|
|
4
|
-
"[typescript]": {
|
|
5
|
-
"editor.formatOnSave": true
|
|
6
|
-
},
|
|
7
|
-
"typescript.tsdk": "node_modules/typescript/lib",
|
|
8
|
-
// Turn Emmet on when writing Lit
|
|
9
|
-
"emmet.includeLanguages": {
|
|
10
|
-
"javascript": "html",
|
|
11
|
-
"typescript": "html"
|
|
12
|
-
}
|
|
13
|
-
}
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# Chat UI
|
|
2
|
-
|
|
3
|
-
This is the widget clients of MeetElise install on their websites. It's published to npm, which means that it's available on skypack. Clients can include it on their site by linking to <https://cdn.skypack.dev/@meetelise/chat>.
|
|
4
|
-
|
|
5
|
-
## Setup
|
|
6
|
-
|
|
7
|
-
1. Install node.js and npm.
|
|
8
|
-
2. Clone this repo.
|
|
9
|
-
3. Run `npm install`
|
|
10
|
-
4. (Optional) Install VSCode.
|
|
11
|
-
|
|
12
|
-
## Development
|
|
13
|
-
|
|
14
|
-
Run `npm start` to run the dev server, Ctrl+C to stop it.
|
|
15
|
-
|
|
16
|
-
To test the build on a static test page, run `npx serve public`, optionally supplying a port number with the `-p` flag.
|
|
17
|
-
|
|
18
|
-
We use:
|
|
19
|
-
|
|
20
|
-
- Lit, a framework for developing web components: https://lit.dev/
|
|
21
|
-
- TypeScript: https://www.typescriptlang.org/
|
|
22
|
-
- Webpack: https://webpack.js.org/
|
|
23
|
-
- ESLint: https://eslint.org/
|
|
24
|
-
- Prettier: https://prettier.io/
|
|
25
|
-
|
|
26
|
-
## Unit tests
|
|
27
|
-
|
|
28
|
-
Run `npm test` to run unit tests via [Web Test Runner](https://modern-web.dev/docs/test-runner/overview/) in a headless browser.
|
|
29
|
-
|
|
30
|
-
## Deployment
|
|
31
|
-
|
|
32
|
-
New versions are generated and deployed to npm every time commits are pushed or merged to the `main` branch.
|
|
33
|
-
|
|
34
|
-
**Commit messages** have an impact in which versions get released. Make sure to commit using the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) format, or your commits will be rejected. The only _scope_ is `chat`, so a commit message will look like e.g. `feat(chat): animate window opening and closing`.
|
|
35
|
-
|
|
36
|
-
This is necessary because CI needs to know whether to bump the major, minor, or patch semver number. The easiest way to commit your staged files with the correct format is by running `npx cz`;
|