@meetelise/chat 1.24.2 → 1.25.1
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/dist/src/MyPubnub.d.ts +116 -0
- package/dist/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section-styles.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section.d.ts +20 -0
- package/dist/src/WebComponent/FeeCalculator/components/fee-item/fee-item-styles.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/components/fee-item/fee-item.d.ts +14 -0
- package/dist/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.d.ts +17 -0
- package/dist/src/WebComponent/FeeCalculator/components/index.d.ts +3 -0
- package/dist/src/WebComponent/FeeCalculator/components/promo-card/promo-card-styles.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/components/promo-card/promo-card.d.ts +13 -0
- package/dist/src/WebComponent/FeeCalculator/fee-calculator-styles.d.ts +1 -0
- package/dist/src/WebComponent/FeeCalculator/fee-calculator.d.ts +31 -0
- package/dist/src/WebComponent/FeeCalculator/index.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/model/building-fee.d.ts +75 -0
- package/dist/src/WebComponent/FeeCalculator/model/transaction-category.d.ts +23 -0
- package/dist/src/WebComponent/LeadSourceClient.d.ts +46 -0
- package/dist/src/WebComponent/OfficeHours.d.ts +21 -0
- package/dist/src/WebComponent/Scheduler/date-picker.d.ts +28 -0
- package/dist/src/WebComponent/Scheduler/time-picker.d.ts +14 -0
- package/dist/src/WebComponent/Scheduler/tour-scheduler.d.ts +99 -0
- package/dist/src/WebComponent/Scheduler/tour-type-option.d.ts +13 -0
- package/dist/src/WebComponent/Scheduler/tourSchedulerStyles.d.ts +1 -0
- package/dist/src/WebComponent/actions/InputStyles.d.ts +1 -0
- package/dist/src/WebComponent/actions/action-confirm-button.d.ts +13 -0
- package/dist/src/WebComponent/actions/call-us-window.d.ts +37 -0
- package/dist/src/WebComponent/actions/collapse-expand-button.d.ts +8 -0
- package/dist/src/WebComponent/actions/details-window.d.ts +14 -0
- package/dist/src/WebComponent/actions/email-us-window.d.ts +46 -0
- package/dist/src/WebComponent/actions/formatPhoneNumber.d.ts +17 -0
- package/dist/src/WebComponent/actions/minimize-expand-button.d.ts +8 -0
- package/dist/src/WebComponent/chat-additional-actions.d.ts +28 -0
- package/dist/src/WebComponent/health-chat.d.ts +47 -0
- package/dist/src/WebComponent/healthchat-styles.d.ts +1 -0
- package/dist/src/WebComponent/icons/ApplyOutlineIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/BookTourOutlineIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/CalculatorOutlineIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/ChatOutlineIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/ChevronLeftIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/ChevronRightIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/ContactResidentIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/DollarOutlineIcon.d.ts +3 -0
- package/dist/src/WebComponent/icons/EmailOutlineIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/HeyThereEmojiIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/PhoneOutlineIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/SendMessageIcon.d.ts +3 -0
- package/dist/src/WebComponent/icons/TourSelfGuidedIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/TourVirtuallyIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/TourWithAgentIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/XOutlineIcon.d.ts +2 -0
- package/dist/src/WebComponent/index.d.ts +2 -0
- package/dist/src/WebComponent/launcher/Launcher.d.ts +98 -0
- package/dist/src/WebComponent/launcher/launcherStyles.d.ts +1 -0
- package/dist/src/WebComponent/launcher/mobile-launcher.d.ts +26 -0
- package/dist/src/WebComponent/launcher/typeEmojiStyles.d.ts +1 -0
- package/dist/src/WebComponent/launcher/typeMiniStyles.d.ts +1 -0
- package/dist/src/WebComponent/launcher/typeMobileStyles.d.ts +1 -0
- package/dist/src/WebComponent/leasing-chat-styles.d.ts +1 -0
- package/dist/src/WebComponent/me-chat.d.ts +91 -0
- package/dist/src/WebComponent/me-select.d.ts +24 -0
- package/dist/src/WebComponent/mini-loader.d.ts +5 -0
- package/dist/src/WebComponent/pubnub-chat-styles.d.ts +1 -0
- package/dist/src/WebComponent/pubnub-chat.d.ts +49 -0
- package/dist/src/WebComponent/pubnub-media.d.ts +14 -0
- package/dist/src/WebComponent/pubnub-message-styles.d.ts +1 -0
- package/dist/src/WebComponent/pubnub-message.d.ts +39 -0
- package/dist/src/WebComponent/simple-launcher/simple-launcher-styles.d.ts +1 -0
- package/dist/src/WebComponent/simple-launcher/simple-launcher.d.ts +12 -0
- package/dist/src/WebComponent/utilities-chat.d.ts +47 -0
- package/dist/src/WebComponent/utilities-styles.d.ts +1 -0
- package/dist/src/WebComponent/utils.d.ts +31 -0
- package/dist/src/analytics.d.ts +64 -0
- package/dist/src/disclaimers.d.ts +8 -0
- package/dist/src/fetchBuildingABTestType.d.ts +8 -0
- package/dist/src/fetchBuildingInfo.d.ts +57 -0
- package/dist/src/fetchBuildingWebchatView.d.ts +122 -0
- package/dist/src/fetchFeatureFlag.d.ts +14 -0
- package/dist/src/fetchLeadSources.d.ts +4 -0
- package/dist/src/fetchPhoneNumberFromSource.d.ts +6 -0
- package/dist/src/getAvailabilities.d.ts +44 -0
- package/dist/src/getBuildingPhoneNumber.d.ts +1 -0
- package/dist/src/getShouldAllowScheduling.d.ts +1 -0
- package/dist/src/getShouldShowWebchat.d.ts +3 -0
- package/dist/src/getTimezoneString.d.ts +1 -0
- package/dist/src/globals.d.ts +1 -0
- package/dist/src/gtm.d.ts +6 -0
- package/dist/src/handleChatId.d.ts +11 -0
- package/dist/src/insertDNIIntoWebsite.d.ts +5 -0
- package/dist/src/insertLeadSourceIntoSchedulerLinks.d.ts +4 -0
- package/dist/src/main/MEChat.d.ts +74 -0
- package/dist/src/main/utils.d.ts +2 -0
- package/dist/src/postLeadSources.d.ts +3 -0
- package/dist/src/rentgrata.d.ts +4 -0
- package/dist/src/replaceSelectButtonsWithNewLink.d.ts +5 -0
- package/dist/src/services/fees/fetchBuildingFees.d.ts +3 -0
- package/dist/src/svgIcons.d.ts +5 -0
- package/dist/src/themes.d.ts +5 -0
- package/dist/src/types/rest-sdk.types.d.ts +11 -0
- package/dist/src/types/webchat-no-show-reason.d.ts +1 -0
- package/dist/src/utils.d.ts +13 -0
- package/package.json +1 -1
- package/public/dist/index.js +946 -265
- package/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section-styles.ts +86 -0
- package/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section.ts +94 -0
- package/src/WebComponent/FeeCalculator/components/fee-item/fee-item-styles.ts +47 -0
- package/src/WebComponent/FeeCalculator/components/fee-item/fee-item.ts +50 -0
- package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles.ts +46 -0
- package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.ts +70 -0
- package/src/WebComponent/FeeCalculator/components/index.ts +3 -0
- package/src/WebComponent/FeeCalculator/components/promo-card/promo-card-styles.ts +39 -0
- package/src/WebComponent/FeeCalculator/components/promo-card/promo-card.ts +39 -0
- package/src/WebComponent/FeeCalculator/fee-calculator-styles.ts +280 -0
- package/src/WebComponent/FeeCalculator/fee-calculator.ts +256 -0
- package/src/WebComponent/FeeCalculator/index.ts +4 -0
- package/src/WebComponent/FeeCalculator/model/building-fee.ts +83 -0
- package/src/WebComponent/FeeCalculator/model/transaction-category.ts +23 -0
- package/src/WebComponent/chat-additional-actions.ts +9 -7
- package/src/WebComponent/icons/CalculatorOutlineIcon.ts +22 -0
- package/src/WebComponent/icons/DollarOutlineIcon.ts +18 -0
- package/src/WebComponent/launcher/Launcher.ts +114 -1
- package/src/WebComponent/launcher/mobile-launcher.ts +13 -0
- package/src/WebComponent/me-chat.ts +23 -1
- package/src/fetchBuildingWebchatView.ts +5 -3
- package/src/globals.ts +1 -0
- package/src/services/fees/fetchBuildingFees.ts +28 -0
- package/src/utils.ts +32 -0
- 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/.prettierrc.json +0 -1
- package/.vscode/settings.json +0 -13
- package/CONTRIBUTING.md +0 -36
- package/web-test-runner.config.js +0 -10
- package/webpack.config.cjs +0 -48
|
@@ -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/.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`;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { esbuildPlugin } from "@web/dev-server-esbuild";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
files: "src/**/*.test.ts",
|
|
5
|
-
plugins: [esbuildPlugin({ ts: true, target: "auto" })],
|
|
6
|
-
nodeResolve: { browser: true },
|
|
7
|
-
coverageConfig: {
|
|
8
|
-
exclude: ["talk.js", "node_modules/**"],
|
|
9
|
-
},
|
|
10
|
-
};
|
package/webpack.config.cjs
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
-
const path = require("path");
|
|
3
|
-
const Dotenv = require("dotenv-webpack");
|
|
4
|
-
const { EnvironmentPlugin } = require("webpack");
|
|
5
|
-
|
|
6
|
-
module.exports = () => {
|
|
7
|
-
return {
|
|
8
|
-
devServer: {
|
|
9
|
-
static: "./public/demo",
|
|
10
|
-
hot: true,
|
|
11
|
-
port: 8000,
|
|
12
|
-
},
|
|
13
|
-
entry: "./src/main/MEChat.ts",
|
|
14
|
-
module: {
|
|
15
|
-
rules: [
|
|
16
|
-
{
|
|
17
|
-
test: /\.tsx?$/,
|
|
18
|
-
use: "ts-loader",
|
|
19
|
-
exclude: /node_modules/,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
test: /\.(c|sa|sc)ss$/,
|
|
23
|
-
use: ["style-loader", "css-loader"],
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
resolve: {
|
|
28
|
-
extensions: [".tsx", ".ts", ".js", ".css", ".scss"],
|
|
29
|
-
},
|
|
30
|
-
experiments: {
|
|
31
|
-
outputModule: true,
|
|
32
|
-
},
|
|
33
|
-
output: {
|
|
34
|
-
filename: "index.js",
|
|
35
|
-
sourceMapFilename: "index.js.map",
|
|
36
|
-
path: path.resolve(__dirname, "public/dist"),
|
|
37
|
-
library: {
|
|
38
|
-
type: "module",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
plugins: [
|
|
42
|
-
new Dotenv(),
|
|
43
|
-
new EnvironmentPlugin({
|
|
44
|
-
LAUNCHDARKLY_CLIENT_ID: "6119b3a2ceeceb24f45c7e66",
|
|
45
|
-
}),
|
|
46
|
-
],
|
|
47
|
-
};
|
|
48
|
-
};
|