@royaloperahouse/harmonic 0.1.4 → 0.1.6

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.1.6]
2
+
3
+ - Updated docs and branching strategy
4
+
5
+ ## [0.1.5]
6
+
7
+ - Remove LiveChat component
8
+
1
9
  ## [0.1.4]
2
10
 
3
11
  - Updated iconography
package/README.GIT CHANGED
@@ -1,24 +1,20 @@
1
1
  # Royal Opera House Harmonic - Front End Design System
2
- # Royal Opera House Harmonic - Front End Design System
3
2
 
4
- Welcome to The Royal Opera House Front End Design System, `@royaloperahouse/harmonic`
5
3
  Welcome to The Royal Opera House Front End Design System, `@royaloperahouse/harmonic`
6
4
 
7
5
  This package is a library of UI components intended to be used in the ROH website.
8
6
 
9
7
  It uses React, TypeScript, TSDX and Storybook.
10
8
 
11
- The NPM packages are published at [coming soon](https://www.npmjs.com/package/@royaloperahouse/harmonic)
9
+ The NPM packages are published at [Royal Opera House - Harmonic](https://www.npmjs.com/package/@royaloperahouse/harmonic)
12
10
 
13
- The Storybook for the latest version of the library is hosted at [coming soon]()
11
+ The Storybook for the latest version of the library is hosted at [Storybook - Harmonic] TODO: S3 deployment
14
12
 
15
13
 
16
14
  ## Prerequisites
17
15
  ---
18
16
 
19
17
  * Make sure the required package dependencies are installed using `yarn install`
20
-
21
- * If this is the first time you are working on Harmonic, make sure to run `yarn build` to build all the modules.
22
18
  * If this is the first time you are working on Harmonic, make sure to run `yarn build` to build all the modules.
23
19
 
24
20
  * **To deploy the storybook publicly** you will need credentials for the **parent** 'Royal Opera House' AWS account in your `~/.aws/credentials` file.
@@ -28,16 +24,18 @@ The Storybook for the latest version of the library is hosted at [coming soon]()
28
24
 
29
25
  *AWS 'Your Applications' page -> 'Royal Opera House' -> 'Developer Access' -> 'Command line or programmatic access'*
30
26
 
31
- * **To deploy a preview** for demo / QA you will need the `CHROMATIC_PROJECT_TOKEN` -- find this in 1Password
27
+ * **To deploy a preview** for demo / QA you will need the `CHROMATIC_PROJECT_TOKEN` -- find this in 1Password. Creating your own Chromatic account is advised if multiple builds are necessary.
32
28
 
33
29
 
34
- * **To publish the NPM package** you will need the ROH `NPM_TOKEN` -- find this in 1Password
30
+ * **To enable publishing to the NPM package**:
31
+ * Create account / log in to NPM
32
+ * Ask a colleague with admin rights to be added as a contributer
33
+ * Generate your own ROH `NPM_TOKEN` (store this token in 1Password)
35
34
 
36
35
 
37
36
  ## Versioning
38
37
  ---
39
38
 
40
- We use [Semantic Versioning](https://semver.org/) for Harmonic.
41
39
  We use [Semantic Versioning](https://semver.org/) for Harmonic.
42
40
 
43
41
  Given a version number MAJOR.MINOR.PATCH, increment the:
@@ -48,7 +46,7 @@ Given a version number MAJOR.MINOR.PATCH, increment the:
48
46
 
49
47
  When you create a new release always update the `CHANGELOG` and `package.json`
50
48
 
51
- Increment your version from the latest stable version on (WIP)
49
+ Increment your version from the latest stable version on [Royal Opera House - Harmonic](https://www.npmjs.com/package/@royaloperahouse/harmonic?activeTab=versions)
52
50
 
53
51
 
54
52
  ## Deploying the Storybook
@@ -73,16 +71,15 @@ You can deploy a release candidate, or work-in-progress to [Chromatic](https://w
73
71
 
74
72
  **NOTE:** you will need the `CHROMATIC_PROJECT_TOKEN` as described in *Prerequisites* above.
75
73
 
76
- Either set the token as a shell variable or use a `.env` file in the (WIP) root directory containing the token, as so:
74
+ Either set the token as a shell variable or use a `.env` file in the `harmonic` root directory containing the token, as so:
77
75
 
78
76
  ```
79
77
  CHROMATIC_PROJECT_TOKEN=tokengoeshere
80
78
  ```
81
79
 
82
80
  Run:
83
-
84
81
  ```
85
- yarn deploy-storybook-dev
82
+ CHROMATIC_PROJECT_TOKEN=tokengoeshere yarn deploy-storybook-dev
86
83
  ```
87
84
 
88
85
  to build and deploy the storybook from your repo to Chromatic.
@@ -93,7 +90,7 @@ You will find the address of your deployed storybook in the console output, look
93
90
 
94
91
  ### **3. To deploy a release version**
95
92
 
96
- You can deploy the contents of `./storybook-static` to S3 as a static site, which is permanently accessible at [WIP]()
93
+ You can deploy the contents of `./storybook-static` to S3 as a static site, which is permanently accessible at [WIP] TODO: S3 deployment
97
94
 
98
95
  **NOTE:** To do this you will need the correct `AWS` credentials set up, as described in *Prerequisites* above.
99
96
 
@@ -109,18 +106,17 @@ then run:
109
106
  yarn deploy-storybook
110
107
  ```
111
108
 
112
- > **IMPORTANT:** This URL is intended to showcase the latest stable version of (WIP), it should be kept up to date with the main (WIP) branch and should **only** be used for release versions. If you want to deploy a development version follow the steps above under *To deploy a preview version remotely*.
109
+ > **IMPORTANT:** This URL is intended to showcase the latest stable version of Harmonic, it should be kept up to date with the `main` Harmonic branch and should **only** be used for release versions. If you want to deploy a development version follow the steps above under *To deploy a preview version remotely*.
113
110
 
114
111
 
115
112
  ## Releasing a New Package Version
116
113
  ---
117
114
 
118
- This is the procedure for releasing a new Harmonic NPM package.
119
115
  This is the procedure for releasing a new Harmonic NPM package.
120
116
 
121
117
  There are two types of package:
122
118
 
123
- A **snapshot** can be published to use a development version of the (WIP) library in our frontend staging environments, to perform integrated, manual testing.
119
+ A **snapshot** can be published to use a development version of the Harmonic library in our frontend staging environments, to perform integrated, manual testing.
124
120
 
125
121
  A **stable** package is published for use in production.
126
122
 
@@ -128,9 +124,9 @@ A **stable** package is published for use in production.
128
124
 
129
125
  ### **1. To release a snapshot version**
130
126
 
131
- > **IMPORTANT:** Make sure you always publish your **snapshots** from (WIP) after merging in your feature branch.
127
+ > **IMPORTANT:** Make sure you always publish your **snapshots** from `development` after merging in your feature branch.
132
128
 
133
- For snapshots, `RELEASE_VERSION` should be the same as the latest **stable** version of the (WIP) Library, as found in (WIP), followed by an **unused** lowercase letter.
129
+ For snapshots, `RELEASE_VERSION` should be the same as the latest **stable** version of the Harmonic Library, as found in [npm Harmonic - Versions](https://www.npmjs.com/package/@royaloperahouse/harmonic?activeTab=versions), followed by an **unused** lowercase letter.
134
130
 
135
131
  For example, if the latest stable release was 1.42.0, and the last snapshot published to NPM was 1.42.0-w, you would use RELEASE_VERSION `1.42.0-x`
136
132
 
@@ -140,19 +136,18 @@ To publish a snapshot use:
140
136
  NPM_ROH_TOKEN={NPM_TOKEN} RELEASE_VERSION={RELEASE_VERSION} yarn publish-snapshot
141
137
  ```
142
138
 
143
- The version published to NPM will be named, e.g. `1.42.0-a-harmonic-development`, use this to install the snapshot package in the frontend repos.
144
139
  The version published to NPM will be named, e.g. `1.42.0-a-harmonic-development`, use this to install the snapshot package in the frontend repos.
145
140
 
146
141
  ### **2. To release a stable version**
147
142
 
148
- > **IMPORTANT:** Make sure you always publish your **stable** packages from (WIP) after merging in your feature branch.
143
+ > **IMPORTANT:** Make sure you always publish your **stable** packages from `main` after merging in your feature branch.
149
144
 
150
- For stable releases, increment your version from the latest **stable** version found on (WIP), following the rules described in *Versioning* above, and use this as `RELEASE_VERSION`. (Make sure it matches the version in your `package.json` and `CHANGELOG.md`!)
145
+ For stable releases, increment your version from the latest **stable** version found on [npm Harmonic - Versions](https://www.npmjs.com/package/@royaloperahouse/harmonic?activeTab=versions), following the rules described in *Versioning* above, and use this as `RELEASE_VERSION`. (Make sure it matches the version in your `package.json` and `CHANGELOG.md`!)
151
146
 
152
147
  To publish a stable package use:
153
148
 
154
149
  ```bash
155
- wip
150
+ NPM_ROH_TOKEN={NPM_TOKEN} RELEASE_VERSION={RELEASE_VERSION} yarn publish-release
156
151
  ```
157
152
 
158
153
 
@@ -163,11 +158,9 @@ The package is deployed to NPM, and can be installed using yarn or npm:
163
158
 
164
159
  ```bash
165
160
  npm i --save @royaloperahouse/harmonic
166
- npm i --save @royaloperahouse/harmonic
167
161
  ```
168
162
  ```bash
169
163
  yarn add @royaloperahouse/harmonic
170
- yarn add @royaloperahouse/harmonic
171
164
  ```
172
165
 
173
166
 
@@ -202,26 +195,26 @@ yarn test-storybook
202
195
  ---
203
196
 
204
197
  ### **1. Branching Model**
205
- * The (WIP) project lives in the `roh-components` *monorepo*
206
- * When working on WIP, treat the (WIP) directory as your root
207
- * The WIP **development** branch is currently WIP
208
- * The WIP **main** branch is currently WIP
209
- * All work should be done on a correctly named **feature branch** of the format: `issueType/ticketNumber-short-description-of-feature`, e.g. WIP
198
+ * The Harmonic project lives in the `harmonic-library/harmonic` *repository*
199
+ * When working on Harmonic, treat the `harmonic` directory as your root
200
+ * The Harmonic **development** branch is for QA
201
+ * The Harmonic **main** branch is currently for stable releases
202
+ * All work should be done on a correctly named **feature branch** of the format: `issueType/ticketNumber-short-description-of-feature`, e.g. `feature/RD-12345-add-example-component`
210
203
  * Always create your feature branch FROM, and submit pull requests TO, the **main** branch
211
- * For **QA / UAT** of a WIP component in isolation: following review you should deploy a preview version to Chromatic straight from your **feature branch** _without_ merging to development
204
+ * For **QA / UAT** of a Harmonic component in isolation: following review you should deploy a preview version to Chromatic straight from your **feature branch** _without_ merging to development
212
205
  * For releasing an **NPM snapshot**: merge your feature branch into the **development** branch and publish the NPM snapshot from there
213
206
 
214
207
  ### **2. Detailed Workflow**
215
208
 
216
209
  #### **Before review:**
217
210
 
218
- * Git pull the latest version of WIP
219
- * Checkout a new, correctly-named feature branch from WIP
211
+ * Git pull the latest version of Harmonic from `main`
212
+ * Checkout a new, correctly-named feature branch from `main`
220
213
  * Do your work on this feature branch
221
- * Run: `yarn lint`
222
- * Run: `yarn test`
214
+ * Run: `yarn lint --fix`
215
+ * Run: `yarn test -u`
223
216
  * Commit your changes
224
- * Create a pull request from your feature branch to WIP
217
+ * Create a pull request from your feature branch to `main`
225
218
  * Add the appropriate reviewers
226
219
 
227
220
  #### **Before QA / UAT:**
@@ -235,10 +228,10 @@ After your PR is approved, you have two options:
235
228
 
236
229
  **ii.** For integrated testing of a component in the frontend staging environments:
237
230
 
238
- * Check out the WIP branch
239
- * Merge your work in to WIP
231
+ * Check out the `development` branch
232
+ * Merge your work in to `development`
240
233
  * Follow the steps above under *Publishing a New Package Version -> 1. To release a snapshot version*
241
- * Git push the updated WIP branch to remote
234
+ * Git push the updated `development` branch to remote
242
235
  * Finally, in the frontend repo:
243
236
 
244
237
  1. Update the `package.json` to reference the new snapshot version
@@ -247,17 +240,17 @@ After your PR is approved, you have two options:
247
240
 
248
241
  #### **When ready for production:**
249
242
 
250
- * Return to your WIP **feature branch**
251
- * Update the WIP version in `package.json`, incrementing from the last **stable** release, found in WIP, and following the rules described in the *Versioning* section
243
+ * Return to your Harmonic **feature branch**
244
+ * Update the HArmonic version in `package.json`, incrementing from the last **stable** release, found in [npm Harmonic - Versions](https://www.npmjs.com/package/@royaloperahouse/harmonic?activeTab=versions), and following the rules described in the *Versioning* section
252
245
  * Update `CHANGELOG.md`, adding the new version number and a short description of your changes
253
- * Run: `yarn lint`
254
- * Run: `yarn test`
246
+ * Run: `yarn lint --fix`
247
+ * Run: `yarn test -u`
255
248
  * Run: `yarn test-storybook -u`
256
249
  * Run: `yarn build-storybook`
257
250
  * Git commit, push, and update your PR for final approval
258
- * Merge your approved PR to WIP
251
+ * Merge your approved PR to `main`
259
252
  * Follow the steps in *Publishing a New Package Version -> 2. To release a stable version* to publish the NPM package
260
- * Finally, follow the steps in *Deploying The Storybook -> 3. To deploy a release version*, to update the public WIP Storybook page
253
+ * Finally, follow the steps in *Deploying The Storybook -> 3. To deploy a release version*, to update the public Harmonic Storybook page
261
254
 
262
255
  Once you have successfully published a new release version, you can open a ticket to update to this version in any of the frontend repos.
263
256
 
package/README.md CHANGED
@@ -1,5 +1,4 @@
1
- # Royal Opera House - harmonic
2
- # Royal Opera House - harmonic
1
+ # Royal Opera House - Harmonic
3
2
 
4
3
  Welcome to The Royal Opera House Harmonic library components `@royaloperahouse/harmonic`.
5
4
 
@@ -55,14 +54,16 @@ const App = ({ children }: InnerProps): React.ReactElement => (
55
54
  ```
56
55
 
57
56
  ## Components
57
+ (Complete)
58
+ ControlledDropdown, ImageProportion, Typography (Display, Header, Subtitle,BodyCopy, Overline, ButtonText, Caption, NavigationText, TextLink)
58
59
 
59
- WIP
60
+ (WIP)
61
+ Colors, Footer, Iconography, Navigation, Tab, Tabs, TabLink
60
62
 
61
- ## Types
62
-
63
- WIP
63
+ (TODO / Legacy)
64
+ Accordion, Accordions, AltHeader, AnchorTabBar, AnnouncementBanner, Card, Cards, Carousel, CinemaBadge, ContactCard, devices, Editorial, GlobalStyles, Grid, GridItem, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, ImageWithCaption, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTags, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StickyBar, StreamBadge, TertiaryButton, TextOnly, Tickbox, TitleWithCTA, ThemeProvider, TypeTags, Quote
64
65
 
65
66
 
66
67
  ## Documentation
67
68
 
68
- See Storybook as a reference
69
+ [See Storybook as a reference] TODO: S3 deployment
@@ -1,8 +1,8 @@
1
1
  import { DisplayHeader, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './Typography';
2
2
  import { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, Progress, Radio, Radio2, RotatorButtons, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, Sponsorship, Stepper, StreamBadge, Subtitle, Tab, TabLink, TextLogo, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, VideoControls } from './atoms';
3
- import { AnchorTabBar, Footer, LiveChat, Navigation, StickyBar, TitleWithCTA, UpsellSection } from './organisms';
3
+ import { AnchorTabBar, Footer, Navigation, StickyBar, TitleWithCTA, UpsellSection } from './organisms';
4
4
  import { Accordion, Accordions, AnnouncementBanner, AuxiliaryNav, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, ImageWithCaption, Information, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PasswordStrength, Pagination, PeopleListing, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, Table, Tabs, TextOnly, UpsellCard, Quote, VideoWithControls } from './molecules';
5
5
  import ThemeProvider from '../styles/ThemeProvider';
6
6
  import GlobalStyles from '../styles/GlobalStyles';
7
7
  export { DisplayHeader, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
8
- export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, ContactCard, ContentSummary, CinemaBadge, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, SecondaryButton, SecondaryLogo, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Table, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, TextLogo, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, LiveChat, VideoControls, VideoWithControls, };
8
+ export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, ContactCard, ContentSummary, CinemaBadge, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, SecondaryButton, SecondaryLogo, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Table, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, TextLogo, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, };
@@ -3,7 +3,6 @@ import { Footer } from './Footer';
3
3
  import AnchorTabBar from './AnchorTabBar';
4
4
  import TitleWithCTA from './TitleWithCTA';
5
5
  import UpsellSection from './UpsellSection';
6
- import { LiveChat } from './LiveChat';
7
6
  import StickyBar from './StickyBar';
8
7
  import ModalWindow from './ModalWindow';
9
- export { AnchorTabBar, Footer, LiveChat, ModalWindow, Navigation, StickyBar, TitleWithCTA, UpsellSection };
8
+ export { AnchorTabBar, Footer, ModalWindow, Navigation, StickyBar, TitleWithCTA, UpsellSection };
@@ -10363,53 +10363,6 @@ var UpsellSection = function UpsellSection(_ref) {
10363
10363
  })))));
10364
10364
  };
10365
10365
 
10366
- // Below data retrieved from royaloperahouse.mytalkdesk.com
10367
- var SCRIPT_SRC = 'https://talkdeskchatsdk.talkdeskapp.com/talkdeskchatsdk.js?t=';
10368
- var DATA_BIND = '5ea4b1ad-1a17-11ec-af32-06f09e0065e0';
10369
- var DATA_ORG = '';
10370
- var DIV_ID = 'tdWebchat';
10371
- var THEME_ICON = 'https://static.roh.org.uk/logos/crest.svg';
10372
- var THEME_FONT_BODY = fontFamilies.sansSerifFallback;
10373
- var THEME_COLOR = core.colors.core;
10374
- var THEME_COLOR_LIGHT = core.colors.core + "80";
10375
- var THEME_COLOR_BLACK = core.colors.black;
10376
- var THEME_COLOR_LIGHTGREY = core.colors.lightgrey;
10377
- var THEME_COLOR_WHITE = core.colors.white;
10378
- var THEME_COLOR_MIDGREY = core.colors.midgrey;
10379
- var SCRIPT_CONTENT = "var webchat;\n((window, document, node, props, configs) => {\n if (window.TalkdeskChatSDK) {\n console.error(\"TalkdeskChatSDK already included\");\n return;\n }\n var divContainer = document.createElement(\"div\");\n divContainer.id = node;\n document.body.appendChild(divContainer);\n var currentDate = new Date().getTime();\n var src = \"" + SCRIPT_SRC + "\" + currentDate;\n var script = document.createElement(\"script\");\n var firstScriptTag = document.getElementsByTagName(\"script\")[0];\n script.type = \"text/javascript\";\n script.charset = \"UTF-8\";\n script.id = \"tdwebchatscript\";\n script.src = src;\n script.async = true;\n firstScriptTag.parentNode.insertBefore(script, firstScriptTag);\n script.onload = () => {\n webchat = TalkdeskChatSDK(node, props);\n webchat.init(configs);\n };\n})(\n window,\n document,\n \"" + DIV_ID + "\",\n { flowId: \"cd19d348b5fb4a0ab0d3277686f28d1e\", accountId: \"\", region: \"td-us-1\" },\n { enableEmoji: true, enableUserInput: true, styles :{\n \"botIcon\": \"" + THEME_ICON + "\",\n \"botBackgroundColor\":\"" + THEME_COLOR_LIGHTGREY + "\",\n \"botTextColor\": \"" + THEME_COLOR_BLACK + "\",\n \"chatTitle\": \"Royal Opera House\",\n \"chatThemeColor\": \"" + THEME_COLOR + "\",\n \"chatTitleIcon\": \"" + THEME_ICON + "\",\n \"customButtonBackgroundColor\": \"" + THEME_COLOR + "\",\n \"customButtonBorderColor\": \"" + THEME_COLOR + "\",\n \"customButtonColor\": \"" + THEME_COLOR_WHITE + "\",\n \"userBackgroundColor\":\"" + THEME_COLOR_LIGHTGREY + "\",\n \"userTextColor\": \"" + THEME_COLOR_BLACK + "\",\n \"userBackgroundColor\":\"" + THEME_COLOR_MIDGREY + "\",\n \"userTextColor\": \"" + THEME_COLOR_BLACK + "\",\n \"welcomeMessageBackgroundColor\": \"" + THEME_COLOR_LIGHT + "\",\n \"welcomeMessageContentFontSize\": \"18px\",\n \"welcomeMessageTitleFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"welcomeMessageContentFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"customMessageFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"customMessageNoBubbleFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"customButtonFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"customFieldLabelFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"customFieldInputFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"customDropdownLabelFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"customDropdownInputFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"startChatButtonBackgroundColor\": \"" + THEME_COLOR + "\",\n \"startChatButtonBorderColor\": \"" + THEME_COLOR + "\",\n \"startChatButtonTextColor\": \"" + THEME_COLOR_WHITE + "\",\n \"startChatButtonHoverBackgroundColor\": \"" + THEME_COLOR + "\",\n \"startChatButtonHoverBorderColor\": \"" + THEME_COLOR + "\",\n \"startChatButtonHoverTextColor\": \"" + THEME_COLOR_WHITE + "\",\n \"startChatButtonFontFamily\": \"" + THEME_FONT_BODY + "\",\n }}\n);";
10380
- var loadLiveChatScript = function loadLiveChatScript(callback) {
10381
- var existingScript = document.getElementById(DIV_ID);
10382
- if (!existingScript) {
10383
- var liveChatDiv = document.createElement('div');
10384
- liveChatDiv.id = DIV_ID;
10385
- liveChatDiv.setAttribute('data-bind', DATA_BIND);
10386
- liveChatDiv.setAttribute('data-org', DATA_ORG);
10387
- var script = document.createElement('script');
10388
- var scriptBody = document.createTextNode(SCRIPT_CONTENT);
10389
- script.appendChild(scriptBody);
10390
- document.body.appendChild(liveChatDiv);
10391
- document.body.appendChild(script);
10392
- script.onload = function () {
10393
- if (callback) callback();
10394
- };
10395
- }
10396
- if (existingScript && callback) callback();
10397
- };
10398
- var LiveChat = function LiveChat() {
10399
- // eslint-disable-next-line
10400
- var _React$useState = React.useState(false),
10401
- loaded = _React$useState[0],
10402
- setLoaded = _React$useState[1];
10403
- React.useEffect(function () {
10404
- loadLiveChatScript(function () {
10405
- setLoaded(true);
10406
- });
10407
- });
10408
- return /*#__PURE__*/React.createElement("span", {
10409
- "data-loaded": loaded
10410
- });
10411
- };
10412
-
10413
10366
  var _templateObject$1j, _templateObject2$Y;
10414
10367
  var StickyBarWrapper = /*#__PURE__*/styled__default.div(_templateObject$1j || (_templateObject$1j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n top: 0;\n position: sticky;\n z-index: ", ";\n background-color: var(--base-color-white);\n"])), zIndexes.anchor);
10415
10368
  var StickyBarGrid = /*#__PURE__*/styled__default(Grid)(_templateObject2$Y || (_templateObject2$Y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n padding: 28px 0 26px;\n\n @media ", " {\n padding: 24px 0 28px;\n }\n\n @media ", " {\n border-bottom: none;\n }\n"])), function (_ref) {
@@ -11532,7 +11485,6 @@ exports.Icon = Icon;
11532
11485
  exports.ImageAspectRatioWrapper = ImageAspectRatioWrapper;
11533
11486
  exports.ImageWithCaption = ImageWithCaption;
11534
11487
  exports.Information = Information;
11535
- exports.LiveChat = LiveChat;
11536
11488
  exports.MiniCard = MiniCard;
11537
11489
  exports.ModalWindow = ModalWindow;
11538
11490
  exports.Navigation = Navigation;