@mailoo/chat 1.34.4 → 1.34.7
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/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/hooks/index.d.cts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/{mailoo-site-chat-widget-C7B797Lu.d.ts → mailoo-site-chat-widget-BJYWb67f.d.ts} +3 -3
- package/dist/{mailoo-site-chat-widget-h_cBqsJw.d.cts → mailoo-site-chat-widget-Cuysef0N.d.cts} +3 -3
- package/dist/{shared-glVmghqk.d.cts → shared-tFahHM92.d.cts} +1 -1
- package/dist/{shared-glVmghqk.d.ts → shared-tFahHM92.d.ts} +1 -1
- package/dist/welcome-presets/index.d.cts +3 -3
- package/dist/welcome-presets/index.d.ts +3 -3
- package/dist/{widget-config-B5Tf7gqn.d.cts → widget-config-Dsu3PybT.d.cts} +1 -1
- package/dist/{widget-config-B5Tf7gqn.d.ts → widget-config-Dsu3PybT.d.ts} +1 -1
- package/package.json +8 -8
package/dist/client/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { M as MailooChatUnavailableAction, a as MailooChatUnavailableRenderArgs } from '../mailoo-site-chat-widget-
|
|
2
|
-
export {
|
|
1
|
+
import { M as MailooChatUnavailableAction, a as MailooChatUnavailableRenderArgs } from '../mailoo-site-chat-widget-Cuysef0N.cjs';
|
|
2
|
+
export { b as MailooChatUiLabels, c as MailooChatUnavailablePanel, d as MailooChatWelcomeRenderArgs, e as MailooChatWidgetProps, f as MailooSiteChatWidget } from '../mailoo-site-chat-widget-Cuysef0N.cjs';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { MailooChatHostConfig } from '../index.cjs';
|
|
6
|
-
import { M as MailooChatFault } from '../shared-
|
|
6
|
+
import { M as MailooChatFault } from '../shared-tFahHM92.cjs';
|
|
7
|
+
export { M as MailooChatLauncherPosition, a as MailooChatWidgetConfig } from '../widget-config-Dsu3PybT.cjs';
|
|
7
8
|
export { M as MailooChatMessage } from '../chat-message-Dw6tKBEb.cjs';
|
|
8
|
-
export { a as MailooChatLauncherPosition, M as MailooChatWidgetConfig } from '../widget-config-B5Tf7gqn.cjs';
|
|
9
9
|
import '@mailoo/next-core';
|
|
10
10
|
|
|
11
11
|
/** Dispatched by Support Live Chat (and other CTAs) to open the floating widget. */
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { M as MailooChatUnavailableAction, a as MailooChatUnavailableRenderArgs } from '../mailoo-site-chat-widget-
|
|
2
|
-
export {
|
|
1
|
+
import { M as MailooChatUnavailableAction, a as MailooChatUnavailableRenderArgs } from '../mailoo-site-chat-widget-BJYWb67f.js';
|
|
2
|
+
export { b as MailooChatUiLabels, c as MailooChatUnavailablePanel, d as MailooChatWelcomeRenderArgs, e as MailooChatWidgetProps, f as MailooSiteChatWidget } from '../mailoo-site-chat-widget-BJYWb67f.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { MailooChatHostConfig } from '../index.js';
|
|
6
|
-
import { M as MailooChatFault } from '../shared-
|
|
6
|
+
import { M as MailooChatFault } from '../shared-tFahHM92.js';
|
|
7
|
+
export { M as MailooChatLauncherPosition, a as MailooChatWidgetConfig } from '../widget-config-Dsu3PybT.js';
|
|
7
8
|
export { M as MailooChatMessage } from '../chat-message-Dw6tKBEb.js';
|
|
8
|
-
export { a as MailooChatLauncherPosition, M as MailooChatWidgetConfig } from '../widget-config-B5Tf7gqn.js';
|
|
9
9
|
import '@mailoo/next-core';
|
|
10
10
|
|
|
11
11
|
/** Dispatched by Support Live Chat (and other CTAs) to open the floating widget. */
|
package/dist/hooks/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as MailooChatMessage } from '../chat-message-Dw6tKBEb.cjs';
|
|
2
|
-
import { M as MailooChatFault, a as MailooChatConnectionState, b as MailooChatSubmitResult, c as MailooChatStatus } from '../shared-
|
|
3
|
-
export { D as DEFAULT_CHAT_GUEST_PROFILE_KEY,
|
|
2
|
+
import { M as MailooChatFault, a as MailooChatConnectionState, b as MailooChatSubmitResult, c as MailooChatStatus } from '../shared-tFahHM92.cjs';
|
|
3
|
+
export { D as DEFAULT_CHAT_GUEST_PROFILE_KEY, d as DEFAULT_CHAT_MESSAGES_ENDPOINT, e as DEFAULT_CHAT_POLL_INTERVAL_MS, f as DEFAULT_CHAT_SESSION_STORAGE_KEY, g as DEFAULT_CHAT_STATUS_ENDPOINT, h as DEFAULT_CHAT_SUBMIT_ENDPOINT, i as MailooChatFaultKind, j as classifyChatFault, k as isChatSessionNotFound, m as messageFromPayload } from '../shared-tFahHM92.cjs';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
|
|
6
6
|
type UseMailooChatSessionOptions = {
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as MailooChatMessage } from '../chat-message-Dw6tKBEb.js';
|
|
2
|
-
import { M as MailooChatFault, a as MailooChatConnectionState, b as MailooChatSubmitResult, c as MailooChatStatus } from '../shared-
|
|
3
|
-
export { D as DEFAULT_CHAT_GUEST_PROFILE_KEY,
|
|
2
|
+
import { M as MailooChatFault, a as MailooChatConnectionState, b as MailooChatSubmitResult, c as MailooChatStatus } from '../shared-tFahHM92.js';
|
|
3
|
+
export { D as DEFAULT_CHAT_GUEST_PROFILE_KEY, d as DEFAULT_CHAT_MESSAGES_ENDPOINT, e as DEFAULT_CHAT_POLL_INTERVAL_MS, f as DEFAULT_CHAT_SESSION_STORAGE_KEY, g as DEFAULT_CHAT_STATUS_ENDPOINT, h as DEFAULT_CHAT_SUBMIT_ENDPOINT, i as MailooChatFaultKind, j as classifyChatFault, k as isChatSessionNotFound, m as messageFromPayload } from '../shared-tFahHM92.js';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
|
|
6
6
|
type UseMailooChatSessionOptions = {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MailooIntegrationConfig } from '@mailoo/next-core';
|
|
2
|
-
import {
|
|
3
|
-
export { b as MAILOO_CHAT_LAUNCHER_POSITIONS,
|
|
2
|
+
import { a as MailooChatWidgetConfig } from './widget-config-Dsu3PybT.cjs';
|
|
3
|
+
export { b as MAILOO_CHAT_LAUNCHER_POSITIONS, M as MailooChatLauncherPosition, c as MailooChatWidgetOperator, d as MailooChatWidgetTopic, e as chatWidgetCssVariables, i as isMailooChatLauncherPosition, m as mailooChatLauncherRootClassNames, r as resolveMailooChatLauncherPosition } from './widget-config-Dsu3PybT.cjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
6
|
type MailooChatIntegrationConfig = MailooIntegrationConfig;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MailooIntegrationConfig } from '@mailoo/next-core';
|
|
2
|
-
import {
|
|
3
|
-
export { b as MAILOO_CHAT_LAUNCHER_POSITIONS,
|
|
2
|
+
import { a as MailooChatWidgetConfig } from './widget-config-Dsu3PybT.js';
|
|
3
|
+
export { b as MAILOO_CHAT_LAUNCHER_POSITIONS, M as MailooChatLauncherPosition, c as MailooChatWidgetOperator, d as MailooChatWidgetTopic, e as chatWidgetCssVariables, i as isMailooChatLauncherPosition, m as mailooChatLauncherRootClassNames, r as resolveMailooChatLauncherPosition } from './widget-config-Dsu3PybT.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
6
|
type MailooChatIntegrationConfig = MailooIntegrationConfig;
|
package/dist/{mailoo-site-chat-widget-C7B797Lu.d.ts → mailoo-site-chat-widget-BJYWb67f.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { M as MailooChatFault } from './shared-
|
|
4
|
-
import {
|
|
3
|
+
import { M as MailooChatFault } from './shared-tFahHM92.js';
|
|
4
|
+
import { a as MailooChatWidgetConfig, M as MailooChatLauncherPosition } from './widget-config-Dsu3PybT.js';
|
|
5
5
|
|
|
6
6
|
type GuestUiCopy = {
|
|
7
7
|
intro: string;
|
|
@@ -127,4 +127,4 @@ type MailooChatWelcomeRenderArgs = {
|
|
|
127
127
|
};
|
|
128
128
|
declare function MailooSiteChatWidget(props: MailooChatWidgetProps): react.JSX.Element;
|
|
129
129
|
|
|
130
|
-
export { type MailooChatUnavailableAction as M, type MailooChatUnavailableRenderArgs as a,
|
|
130
|
+
export { type MailooChatUnavailableAction as M, type MailooChatUnavailableRenderArgs as a, type MailooChatUiLabels as b, MailooChatUnavailablePanel as c, type MailooChatWelcomeRenderArgs as d, type MailooChatWidgetProps as e, MailooSiteChatWidget as f };
|
package/dist/{mailoo-site-chat-widget-h_cBqsJw.d.cts → mailoo-site-chat-widget-Cuysef0N.d.cts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { M as MailooChatFault } from './shared-
|
|
4
|
-
import {
|
|
3
|
+
import { M as MailooChatFault } from './shared-tFahHM92.cjs';
|
|
4
|
+
import { a as MailooChatWidgetConfig, M as MailooChatLauncherPosition } from './widget-config-Dsu3PybT.cjs';
|
|
5
5
|
|
|
6
6
|
type GuestUiCopy = {
|
|
7
7
|
intro: string;
|
|
@@ -127,4 +127,4 @@ type MailooChatWelcomeRenderArgs = {
|
|
|
127
127
|
};
|
|
128
128
|
declare function MailooSiteChatWidget(props: MailooChatWidgetProps): react.JSX.Element;
|
|
129
129
|
|
|
130
|
-
export { type MailooChatUnavailableAction as M, type MailooChatUnavailableRenderArgs as a,
|
|
130
|
+
export { type MailooChatUnavailableAction as M, type MailooChatUnavailableRenderArgs as a, type MailooChatUiLabels as b, MailooChatUnavailablePanel as c, type MailooChatWelcomeRenderArgs as d, type MailooChatWidgetProps as e, MailooSiteChatWidget as f };
|
|
@@ -37,4 +37,4 @@ declare function classifyChatFault(status: number, payload: unknown, fallbackMes
|
|
|
37
37
|
/** Upstream 404 after DB reset / expired sessionStorage id. */
|
|
38
38
|
declare function isChatSessionNotFound(status: number, data: unknown): boolean;
|
|
39
39
|
|
|
40
|
-
export { DEFAULT_CHAT_GUEST_PROFILE_KEY as D, type MailooChatFault as M, type MailooChatConnectionState as a, type MailooChatSubmitResult as b, type MailooChatStatus as c,
|
|
40
|
+
export { DEFAULT_CHAT_GUEST_PROFILE_KEY as D, type MailooChatFault as M, type MailooChatConnectionState as a, type MailooChatSubmitResult as b, type MailooChatStatus as c, DEFAULT_CHAT_MESSAGES_ENDPOINT as d, DEFAULT_CHAT_POLL_INTERVAL_MS as e, DEFAULT_CHAT_SESSION_STORAGE_KEY as f, DEFAULT_CHAT_STATUS_ENDPOINT as g, DEFAULT_CHAT_SUBMIT_ENDPOINT as h, type MailooChatFaultKind as i, classifyChatFault as j, isChatSessionNotFound as k, messageFromPayload as m };
|
|
@@ -37,4 +37,4 @@ declare function classifyChatFault(status: number, payload: unknown, fallbackMes
|
|
|
37
37
|
/** Upstream 404 after DB reset / expired sessionStorage id. */
|
|
38
38
|
declare function isChatSessionNotFound(status: number, data: unknown): boolean;
|
|
39
39
|
|
|
40
|
-
export { DEFAULT_CHAT_GUEST_PROFILE_KEY as D, type MailooChatFault as M, type MailooChatConnectionState as a, type MailooChatSubmitResult as b, type MailooChatStatus as c,
|
|
40
|
+
export { DEFAULT_CHAT_GUEST_PROFILE_KEY as D, type MailooChatFault as M, type MailooChatConnectionState as a, type MailooChatSubmitResult as b, type MailooChatStatus as c, DEFAULT_CHAT_MESSAGES_ENDPOINT as d, DEFAULT_CHAT_POLL_INTERVAL_MS as e, DEFAULT_CHAT_SESSION_STORAGE_KEY as f, DEFAULT_CHAT_STATUS_ENDPOINT as g, DEFAULT_CHAT_SUBMIT_ENDPOINT as h, type MailooChatFaultKind as i, classifyChatFault as j, isChatSessionNotFound as k, messageFromPayload as m };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { d as MailooChatWelcomeRenderArgs } from '../mailoo-site-chat-widget-Cuysef0N.cjs';
|
|
4
4
|
import { MailooChatWelcomePresetId, MailooChatWelcomePresetOption } from './parse.cjs';
|
|
5
5
|
export { normalizeLegacyWelcomePresetId, parseMailooChatWelcomePreset } from './parse.cjs';
|
|
6
|
-
import '../shared-
|
|
7
|
-
import '../widget-config-
|
|
6
|
+
import '../shared-tFahHM92.cjs';
|
|
7
|
+
import '../widget-config-Dsu3PybT.cjs';
|
|
8
8
|
|
|
9
9
|
type MailooChatWelcomePresetContextValue = {
|
|
10
10
|
preset: MailooChatWelcomePresetId;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { d as MailooChatWelcomeRenderArgs } from '../mailoo-site-chat-widget-BJYWb67f.js';
|
|
4
4
|
import { MailooChatWelcomePresetId, MailooChatWelcomePresetOption } from './parse.js';
|
|
5
5
|
export { normalizeLegacyWelcomePresetId, parseMailooChatWelcomePreset } from './parse.js';
|
|
6
|
-
import '../shared-
|
|
7
|
-
import '../widget-config-
|
|
6
|
+
import '../shared-tFahHM92.js';
|
|
7
|
+
import '../widget-config-Dsu3PybT.js';
|
|
8
8
|
|
|
9
9
|
type MailooChatWelcomePresetContextValue = {
|
|
10
10
|
preset: MailooChatWelcomePresetId;
|
|
@@ -29,4 +29,4 @@ declare function resolveMailooChatLauncherPosition(prop: MailooChatLauncherPosit
|
|
|
29
29
|
declare function mailooChatLauncherRootClassNames(position: MailooChatLauncherPosition): string;
|
|
30
30
|
declare function chatWidgetCssVariables(config: Pick<MailooChatWidgetConfig, 'brandPrimary' | 'brandOnPrimary'> | null | undefined): CSSProperties;
|
|
31
31
|
|
|
32
|
-
export { type
|
|
32
|
+
export { type MailooChatLauncherPosition as M, type MailooChatWidgetConfig as a, MAILOO_CHAT_LAUNCHER_POSITIONS as b, type MailooChatWidgetOperator as c, type MailooChatWidgetTopic as d, chatWidgetCssVariables as e, isMailooChatLauncherPosition as i, mailooChatLauncherRootClassNames as m, resolveMailooChatLauncherPosition as r };
|
|
@@ -29,4 +29,4 @@ declare function resolveMailooChatLauncherPosition(prop: MailooChatLauncherPosit
|
|
|
29
29
|
declare function mailooChatLauncherRootClassNames(position: MailooChatLauncherPosition): string;
|
|
30
30
|
declare function chatWidgetCssVariables(config: Pick<MailooChatWidgetConfig, 'brandPrimary' | 'brandOnPrimary'> | null | undefined): CSSProperties;
|
|
31
31
|
|
|
32
|
-
export { type
|
|
32
|
+
export { type MailooChatLauncherPosition as M, type MailooChatWidgetConfig as a, MAILOO_CHAT_LAUNCHER_POSITIONS as b, type MailooChatWidgetOperator as c, type MailooChatWidgetTopic as d, chatWidgetCssVariables as e, isMailooChatLauncherPosition as i, mailooChatLauncherRootClassNames as m, resolveMailooChatLauncherPosition as r };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailoo/chat",
|
|
3
|
-
"version": "1.34.
|
|
3
|
+
"version": "1.34.7",
|
|
4
4
|
"description": "Mailoo JSBOX chat visitor widget and Next.js BFF routes",
|
|
5
5
|
"license": "LicenseRef-Mailoo-NoModification",
|
|
6
6
|
"homepage": "https://mailoo.app/en/support/docs/integrations/nextjs-packages",
|
|
@@ -66,15 +66,15 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@heroicons/react": "^2.2.0",
|
|
69
|
-
"@mailoo/next-core": "1.34.
|
|
70
|
-
"@types/node": "^25.9.
|
|
71
|
-
"@types/react": "^19.
|
|
72
|
-
"next": "^16.4.
|
|
73
|
-
"react": "^19.
|
|
74
|
-
"react-dom": "^19.
|
|
69
|
+
"@mailoo/next-core": "1.34.7",
|
|
70
|
+
"@types/node": "^25.9.9",
|
|
71
|
+
"@types/react": "^19.3.0",
|
|
72
|
+
"next": "^16.4.3",
|
|
73
|
+
"react": "^19.3.1",
|
|
74
|
+
"react-dom": "^19.3.1",
|
|
75
75
|
"tsup": "^8.5.1",
|
|
76
76
|
"typescript": "^5.9.3",
|
|
77
|
-
"vitest": "^4.1.
|
|
77
|
+
"vitest": "^4.1.12"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": ">=20.20.2"
|