You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<UAlertv-if="!isLoaded"class="mb-5"size="sm"color="blue"variant="soft"title="Click to load"description="Clicking the button to the right will load the Intercom script" />
14
+
<UAlertv-elsecolor="green"variant="soft"title="Crisp is loaded"description="The Intercom Facade component is no longer being displayed." />
Copy file name to clipboardExpand all lines: docs/content/scripts/support/crisp.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,13 @@ links:
14
14
15
15
[Crisp](https://crisp.chat/) is a customer messaging platform that lets you communicate with your customers through chat, email, and more.
16
16
17
-
Nuxt Scripts provides a [useScriptCrisp](#usescriptcrisp) composable and a headless Facade Component [useScriptCrisp](#scriptcrisp) component to interact with the Crisp.
17
+
Nuxt Scripts provides a [useScriptCrisp](#usescriptcrisp) composable and a headless Facade Component [useScriptCrisp](#scriptcrisp) component to interact with crisp.
18
18
19
19
## ScriptCrisp
20
20
21
21
The `ScriptCrisp` component is headless Facade Component wrapping the [useScriptCrisp](#usescriptcrisp) composable, providing a simple, performance optimized way to load Crisp in your Nuxt app.
22
22
23
-
It's optimized for performance by leveraging the [Element Event Triggers](/docs/guides/script-triggers#element-event-triggers), only loading the Crisp when specific elements events happen.
23
+
It's optimized for performance by leveraging the [Element Event Triggers](/docs/guides/script-triggers#element-event-triggers), only loading crisp when specific elements events happen.
24
24
25
25
By default, it will load on the `click` DOM event.
26
26
@@ -48,7 +48,7 @@ const isLoaded = ref(false)
48
48
</ScriptCrisp>
49
49
</div>
50
50
<div class="text-center">
51
-
<UAlert v-if="!isLoaded" class="mb-5" size="sm" color="blue" variant="soft" title="Click to load" description="Clicking the button to the right will load the Crisp script" />
51
+
<UAlert v-if="!isLoaded" class="mb-5" size="sm" color="blue" variant="soft" title="Click to load" description="Clicking the button to the right will load crisp script" />
52
52
<UAlert v-else color="green" variant="soft" title="Crisp is loaded" description="The Crisp Facade component is no longer being displayed." />
53
53
</div>
54
54
</div>
@@ -91,18 +91,18 @@ const isLoaded = ref(false)
91
91
92
92
### Props
93
93
94
-
-`trigger`: The trigger event to load the Crisp. Default is `click`. See [Element Event Triggers](/docs/guides/script-triggers#element-event-triggers) for more information.
95
-
-`id`: The Crisp ID.
94
+
-`trigger`: The trigger event to load crisp. Default is `click`. See [Element Event Triggers](/docs/guides/script-triggers#element-event-triggers) for more information.
95
+
-`id`: Crisp ID.
96
96
-`runtimeConfig`: Extra configuration options. Used to configure the locale. Same as CRISP_RUNTIME_CONFIG.
97
97
-`tokenId`: Associated a session, equivalent to using CRISP_TOKEN_ID variable. Same as CRISP_TOKEN_ID.
98
-
-`cookieDomain`: Restrict the domain that the Crisp cookie is set on. Same as CRISP_COOKIE_DOMAIN.
98
+
-`cookieDomain`: Restrict the domain that crisp cookie is set on. Same as CRISP_COOKIE_DOMAIN.
99
99
-`cookieExpiry`: The cookie expiry in seconds. Same as CRISP_COOKIE_EXPIRATION.
100
100
101
101
See the [Config Schema](#config-schema) for full details.
102
102
103
103
### Events
104
104
105
-
The `ScriptCrisp` component emits a single `ready` event when the Crisp is loaded.
105
+
The `ScriptCrisp` component emits a single `ready` event when crisp is loaded.
106
106
107
107
```ts
108
108
const emits =defineEmits<{
@@ -147,11 +147,11 @@ The component provides minimal UI by default, only enough to be functional and a
147
147
148
148
The default slot is used to display content that will always be visible.
149
149
150
-
Tip: It's best to leave this empty as the Crisp replaces this component in its own component.
150
+
Tip: It's best to leave this empty as crisp replaces this component in its own component.
151
151
152
152
**awaitingLoad**
153
153
154
-
The slot is used to display content while the Crisp is loading.
154
+
The slot is used to display content while crisp is loading.
155
155
156
156
```vue
157
157
<template>
@@ -167,7 +167,7 @@ The slot is used to display content while the Crisp is loading.
167
167
168
168
**loading**
169
169
170
-
The slot is used to display content while the Crisp is loading.
170
+
The slot is used to display content while crisp is loading.
171
171
172
172
Tip: You should use the `ScriptLoadingIndicator` by default for accessibility and UX.
173
173
@@ -185,7 +185,7 @@ Tip: You should use the `ScriptLoadingIndicator` by default for accessibility an
185
185
186
186
## useScriptCrisp
187
187
188
-
The `useScriptCrisp` composable lets you have fine-grain control over the Crisp SDK. It provides a way to load the Crisp SDK and interact with it programmatically.
188
+
The `useScriptCrisp` composable lets you have fine-grain control over Crisp SDK. It provides a way to load crisp SDK and interact with it programmatically.
0 commit comments