@consilioweb/payload-support 0.6.3 → 0.6.4
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/components/TicketConversation/components/AISummaryPanel.js +1 -1
- package/dist/components/TicketConversation/components/ActionPanels.js +1 -1
- package/dist/components/TicketConversation/components/ActivityLog.js +1 -1
- package/dist/components/TicketConversation/components/ClientBar.js +1 -1
- package/dist/components/TicketConversation/components/ClientHistory.js +1 -1
- package/dist/components/TicketConversation/components/QuickActions.js +1 -1
- package/dist/components/TicketConversation/components/TicketHeader.js +1 -1
- package/dist/components/TicketConversation/components/TimeTrackingPanel.js +1 -1
- package/dist/components/TicketConversation/index.js +18 -18
- package/dist/views/BillingView/client.js +1 -1
- package/dist/views/BillingView/index.js +2 -2
- package/dist/views/ChatView/client.js +1 -1
- package/dist/views/ChatView/index.js +2 -2
- package/dist/views/CrmView/client.js +1 -1
- package/dist/views/CrmView/index.js +2 -2
- package/dist/views/EmailTrackingView/client.js +1 -1
- package/dist/views/EmailTrackingView/index.js +2 -2
- package/dist/views/ImportConversationView/client.js +1 -1
- package/dist/views/ImportConversationView/index.js +2 -2
- package/dist/views/LogsView/client.js +1 -1
- package/dist/views/LogsView/index.js +2 -2
- package/dist/views/NewTicketView/client.js +1 -1
- package/dist/views/NewTicketView/index.js +2 -2
- package/dist/views/PendingEmailsView/client.js +1 -1
- package/dist/views/PendingEmailsView/index.js +2 -2
- package/dist/views/SupportDashboardView/client.js +1 -1
- package/dist/views/SupportDashboardView/index.js +2 -2
- package/dist/views/TicketDetailView/client.js +2 -2
- package/dist/views/TicketDetailView/index.js +2 -2
- package/dist/views/TicketInboxView/client.js +1 -1
- package/dist/views/TicketInboxView/index.js +2 -2
- package/dist/views/TicketingSettingsView/client.js +3 -3
- package/dist/views/TicketingSettingsView/index.js +2 -2
- package/dist/views/TimeDashboardView/client.js +1 -1
- package/dist/views/TimeDashboardView/index.js +2 -2
- package/dist/views/shared/AdminViewHeader.js +1 -1
- package/dist/views/shared/index.js +5 -5
- package/dist/views.js +13 -13
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
-
import { s, C } from '../constants';
|
|
4
|
+
import { s, C } from '../constants.js';
|
|
5
5
|
|
|
6
6
|
function ActivityLog({ activityLog }) {
|
|
7
7
|
const [showActivity, setShowActivity] = useState(false);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
-
import { s, C, statusLabels, projectStatusLabels } from '../constants';
|
|
4
|
+
import { s, C, statusLabels, projectStatusLabels } from '../constants.js';
|
|
5
5
|
|
|
6
6
|
function ClientHistory({
|
|
7
7
|
client: _client,
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useState, useRef, useCallback, useEffect } from 'react';
|
|
4
|
-
import { C, s } from './constants';
|
|
5
|
-
import { getDateLabel, formatMessageDate } from './utils';
|
|
6
|
-
import { CodeBlockRendererHtml, CodeBlockRenderer } from './components/CodeBlock';
|
|
7
|
-
import { CodeBlockInserter } from './components/CodeBlockInserter';
|
|
8
|
-
import { TicketHeader } from './components/TicketHeader';
|
|
9
|
-
import { ClientBar } from './components/ClientBar';
|
|
10
|
-
import { QuickActions } from './components/QuickActions';
|
|
11
|
-
import { AISummaryPanel } from './components/AISummaryPanel';
|
|
12
|
-
import { MergePanel, ExtMessagePanel, SnoozePanel } from './components/ActionPanels';
|
|
13
|
-
import { ActivityLog } from './components/ActivityLog';
|
|
14
|
-
import { ClientHistory } from './components/ClientHistory';
|
|
15
|
-
import { TimeTrackingPanel } from './components/TimeTrackingPanel';
|
|
16
|
-
import { useTimeTracking } from './hooks/useTimeTracking';
|
|
17
|
-
import { useMessageActions } from './hooks/useMessageActions';
|
|
18
|
-
import { useTicketActions } from './hooks/useTicketActions';
|
|
19
|
-
import { useReply } from './hooks/useReply';
|
|
20
|
-
import { useAI } from './hooks/useAI';
|
|
21
|
-
import { getFeatures } from './config';
|
|
4
|
+
import { C, s } from './constants.js';
|
|
5
|
+
import { getDateLabel, formatMessageDate } from './utils.js';
|
|
6
|
+
import { CodeBlockRendererHtml, CodeBlockRenderer } from './components/CodeBlock.js';
|
|
7
|
+
import { CodeBlockInserter } from './components/CodeBlockInserter.js';
|
|
8
|
+
import { TicketHeader } from './components/TicketHeader.js';
|
|
9
|
+
import { ClientBar } from './components/ClientBar.js';
|
|
10
|
+
import { QuickActions } from './components/QuickActions.js';
|
|
11
|
+
import { AISummaryPanel } from './components/AISummaryPanel.js';
|
|
12
|
+
import { MergePanel, ExtMessagePanel, SnoozePanel } from './components/ActionPanels.js';
|
|
13
|
+
import { ActivityLog } from './components/ActivityLog.js';
|
|
14
|
+
import { ClientHistory } from './components/ClientHistory.js';
|
|
15
|
+
import { TimeTrackingPanel } from './components/TimeTrackingPanel.js';
|
|
16
|
+
import { useTimeTracking } from './hooks/useTimeTracking.js';
|
|
17
|
+
import { useMessageActions } from './hooks/useMessageActions.js';
|
|
18
|
+
import { useTicketActions } from './hooks/useTicketActions.js';
|
|
19
|
+
import { useReply } from './hooks/useReply.js';
|
|
20
|
+
import { useAI } from './hooks/useAI.js';
|
|
21
|
+
import { getFeatures } from './config.js';
|
|
22
22
|
import '../../styles/theme.css';
|
|
23
23
|
|
|
24
24
|
function useDocumentIdFromUrl() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useState, useCallback } from 'react';
|
|
4
|
-
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation';
|
|
4
|
+
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation.js';
|
|
5
5
|
|
|
6
6
|
function formatDuration(minutes) {
|
|
7
7
|
const h = Math.floor(minutes / 60);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DefaultTemplate } from '@payloadcms/next/templates';
|
|
3
3
|
import { redirect } from 'next/navigation';
|
|
4
|
-
import { AdminErrorBoundary } from '../shared/ErrorBoundary';
|
|
5
|
-
import { BillingClient } from './client';
|
|
4
|
+
import { AdminErrorBoundary } from '../shared/ErrorBoundary.js';
|
|
5
|
+
import { BillingClient } from './client.js';
|
|
6
6
|
|
|
7
7
|
const BillingView = ({ initPageResult }) => {
|
|
8
8
|
const { req, visibleEntities } = initPageResult;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useRef, useCallback, useEffect } from 'react';
|
|
4
|
-
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation';
|
|
4
|
+
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation.js';
|
|
5
5
|
|
|
6
6
|
const ChatViewClient = () => {
|
|
7
7
|
const { t } = useTranslation();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DefaultTemplate } from '@payloadcms/next/templates';
|
|
3
3
|
import { redirect } from 'next/navigation';
|
|
4
|
-
import { AdminErrorBoundary } from '../shared/ErrorBoundary';
|
|
5
|
-
import { ChatViewClient } from './client';
|
|
4
|
+
import { AdminErrorBoundary } from '../shared/ErrorBoundary.js';
|
|
5
|
+
import { ChatViewClient } from './client.js';
|
|
6
6
|
|
|
7
7
|
const ChatView = ({ initPageResult }) => {
|
|
8
8
|
const { req, visibleEntities } = initPageResult;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useCallback, useEffect } from 'react';
|
|
4
|
-
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation';
|
|
4
|
+
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation.js';
|
|
5
5
|
|
|
6
6
|
const statusLabelKeys = { open: "ticket.status.open", waiting_client: "ticket.status.waiting_client", resolved: "ticket.status.resolved" };
|
|
7
7
|
const statusColors = { open: "#3b82f6", waiting_client: "#f59e0b", resolved: "#22c55e" };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DefaultTemplate } from '@payloadcms/next/templates';
|
|
3
3
|
import { redirect } from 'next/navigation';
|
|
4
|
-
import { AdminErrorBoundary } from '../shared/ErrorBoundary';
|
|
5
|
-
import { CrmClient } from './client';
|
|
4
|
+
import { AdminErrorBoundary } from '../shared/ErrorBoundary.js';
|
|
5
|
+
import { CrmClient } from './client.js';
|
|
6
6
|
|
|
7
7
|
const CrmView = ({ initPageResult }) => {
|
|
8
8
|
const { req, visibleEntities } = initPageResult;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
4
|
-
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation';
|
|
4
|
+
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation.js';
|
|
5
5
|
|
|
6
6
|
const STATUS_CFG = {
|
|
7
7
|
success: { key: "emailTracking.status.success", bg: "#dcfce7", color: "#16a34a" },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DefaultTemplate } from '@payloadcms/next/templates';
|
|
3
3
|
import { redirect } from 'next/navigation';
|
|
4
|
-
import { AdminErrorBoundary } from '../shared/ErrorBoundary';
|
|
5
|
-
import { EmailTrackingClient } from './client';
|
|
4
|
+
import { AdminErrorBoundary } from '../shared/ErrorBoundary.js';
|
|
5
|
+
import { EmailTrackingClient } from './client.js';
|
|
6
6
|
|
|
7
7
|
const EmailTrackingView = ({ initPageResult }) => {
|
|
8
8
|
const { req, visibleEntities } = initPageResult;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useRef, useCallback } from 'react';
|
|
4
|
-
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation';
|
|
4
|
+
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation.js';
|
|
5
5
|
|
|
6
6
|
function ImportConversationClient() {
|
|
7
7
|
const { t } = useTranslation();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DefaultTemplate } from '@payloadcms/next/templates';
|
|
3
3
|
import { redirect } from 'next/navigation';
|
|
4
|
-
import { AdminErrorBoundary } from '../shared/ErrorBoundary';
|
|
5
|
-
import { ImportConversationClient } from './client';
|
|
4
|
+
import { AdminErrorBoundary } from '../shared/ErrorBoundary.js';
|
|
5
|
+
import { ImportConversationClient } from './client.js';
|
|
6
6
|
|
|
7
7
|
const ImportConversationView = ({ initPageResult }) => {
|
|
8
8
|
const { req, visibleEntities } = initPageResult;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useCallback, useEffect } from 'react';
|
|
4
4
|
import { useSearchParams } from 'next/navigation';
|
|
5
|
-
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation';
|
|
5
|
+
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation.js';
|
|
6
6
|
|
|
7
7
|
function fmtDate(d) {
|
|
8
8
|
return new Date(d).toLocaleDateString("fr-FR", { day: "2-digit", month: "2-digit", year: "2-digit", hour: "2-digit", minute: "2-digit" });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DefaultTemplate } from '@payloadcms/next/templates';
|
|
3
3
|
import { redirect } from 'next/navigation';
|
|
4
|
-
import { AdminErrorBoundary } from '../shared/ErrorBoundary';
|
|
5
|
-
import { LogsClient } from './client';
|
|
4
|
+
import { AdminErrorBoundary } from '../shared/ErrorBoundary.js';
|
|
5
|
+
import { LogsClient } from './client.js';
|
|
6
6
|
|
|
7
7
|
const LogsView = ({ initPageResult }) => {
|
|
8
8
|
const { req, visibleEntities } = initPageResult;
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
4
|
import Link from 'next/link';
|
|
5
5
|
import { useRouter } from 'next/navigation';
|
|
6
|
-
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation';
|
|
6
|
+
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation.js';
|
|
7
7
|
|
|
8
8
|
const CATEGORY_KEYS = [
|
|
9
9
|
{ value: "", key: "ticket.category.select" },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DefaultTemplate } from '@payloadcms/next/templates';
|
|
3
3
|
import { redirect } from 'next/navigation';
|
|
4
|
-
import { AdminErrorBoundary } from '../shared/ErrorBoundary';
|
|
5
|
-
import { NewTicketClient } from './client';
|
|
4
|
+
import { AdminErrorBoundary } from '../shared/ErrorBoundary.js';
|
|
5
|
+
import { NewTicketClient } from './client.js';
|
|
6
6
|
|
|
7
7
|
const NewTicketView = ({ initPageResult }) => {
|
|
8
8
|
const { req, visibleEntities } = initPageResult;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useCallback, useEffect } from 'react';
|
|
4
|
-
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation';
|
|
4
|
+
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation.js';
|
|
5
5
|
|
|
6
6
|
function timeAgo(dateStr) {
|
|
7
7
|
const diff = Date.now() - new Date(dateStr).getTime();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DefaultTemplate } from '@payloadcms/next/templates';
|
|
3
3
|
import { redirect } from 'next/navigation';
|
|
4
|
-
import { AdminErrorBoundary } from '../shared/ErrorBoundary';
|
|
5
|
-
import { PendingEmailsClient } from './client';
|
|
4
|
+
import { AdminErrorBoundary } from '../shared/ErrorBoundary.js';
|
|
5
|
+
import { PendingEmailsClient } from './client.js';
|
|
6
6
|
|
|
7
7
|
const PendingEmailsView = ({ initPageResult }) => {
|
|
8
8
|
const { req, visibleEntities } = initPageResult;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useCallback, useEffect, useMemo } from 'react';
|
|
4
4
|
import Link from 'next/link';
|
|
5
|
-
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation';
|
|
5
|
+
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation.js';
|
|
6
6
|
|
|
7
7
|
function formatResponseTime(hours) {
|
|
8
8
|
if (hours == null) return "--";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DefaultTemplate } from '@payloadcms/next/templates';
|
|
3
3
|
import { redirect } from 'next/navigation';
|
|
4
|
-
import { AdminErrorBoundary } from '../shared/ErrorBoundary';
|
|
5
|
-
import { SupportDashboardClient } from './client';
|
|
4
|
+
import { AdminErrorBoundary } from '../shared/ErrorBoundary.js';
|
|
5
|
+
import { SupportDashboardClient } from './client.js';
|
|
6
6
|
|
|
7
7
|
const SupportDashboardView = ({ initPageResult }) => {
|
|
8
8
|
const { req, visibleEntities } = initPageResult;
|
|
@@ -3,8 +3,8 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
3
3
|
import React, { useRef, useState, useCallback, useEffect } from 'react';
|
|
4
4
|
import { useSearchParams } from 'next/navigation';
|
|
5
5
|
import Link from 'next/link';
|
|
6
|
-
import { getFeatures } from '../shared/config';
|
|
7
|
-
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation';
|
|
6
|
+
import { getFeatures } from '../shared/config.js';
|
|
7
|
+
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation.js';
|
|
8
8
|
|
|
9
9
|
const STATUS = {
|
|
10
10
|
open: { label: "Ouvert", bg: "#dbeafe", color: "#1e40af" },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DefaultTemplate } from '@payloadcms/next/templates';
|
|
3
3
|
import { redirect } from 'next/navigation';
|
|
4
|
-
import { AdminErrorBoundary } from '../shared/ErrorBoundary';
|
|
5
|
-
import { TicketDetailClient } from './client';
|
|
4
|
+
import { AdminErrorBoundary } from '../shared/ErrorBoundary.js';
|
|
5
|
+
import { TicketDetailClient } from './client.js';
|
|
6
6
|
|
|
7
7
|
const TicketDetailView = ({ initPageResult }) => {
|
|
8
8
|
const { req, visibleEntities } = initPageResult;
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useState, useCallback, useEffect } from 'react';
|
|
4
4
|
import { useSearchParams } from 'next/navigation';
|
|
5
5
|
import Link from 'next/link';
|
|
6
|
-
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation';
|
|
6
|
+
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation.js';
|
|
7
7
|
|
|
8
8
|
const STATUS_DOTS = {
|
|
9
9
|
open: "#22c55e",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DefaultTemplate } from '@payloadcms/next/templates';
|
|
3
3
|
import { redirect } from 'next/navigation';
|
|
4
|
-
import { AdminErrorBoundary } from '../shared/ErrorBoundary';
|
|
5
|
-
import { TicketInboxClient } from './client';
|
|
4
|
+
import { AdminErrorBoundary } from '../shared/ErrorBoundary.js';
|
|
5
|
+
import { TicketInboxClient } from './client.js';
|
|
6
6
|
|
|
7
7
|
const TicketInboxView = ({ initPageResult }) => {
|
|
8
8
|
const { req, visibleEntities } = initPageResult;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
4
|
import { Settings, Mail, Bot, Clock, Timer, Globe, FileSignature } from 'lucide-react';
|
|
5
|
-
import { V, btnStyle } from '../shared/adminTokens';
|
|
6
|
-
import { AdminViewHeader } from '../shared/AdminViewHeader';
|
|
7
|
-
import { getFeatures, saveFeatures, DEFAULT_FEATURES } from '../../components/TicketConversation/config';
|
|
5
|
+
import { V, btnStyle } from '../shared/adminTokens.js';
|
|
6
|
+
import { AdminViewHeader } from '../shared/AdminViewHeader.js';
|
|
7
|
+
import { getFeatures, saveFeatures, DEFAULT_FEATURES } from '../../components/TicketConversation/config.js';
|
|
8
8
|
import ts from './TicketingSettings.module.scss';
|
|
9
9
|
|
|
10
10
|
const DEFAULT_SETTINGS = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DefaultTemplate } from '@payloadcms/next/templates';
|
|
3
3
|
import { redirect } from 'next/navigation';
|
|
4
|
-
import { AdminErrorBoundary } from '../shared/ErrorBoundary';
|
|
5
|
-
import { TicketingSettingsClient } from './client';
|
|
4
|
+
import { AdminErrorBoundary } from '../shared/ErrorBoundary.js';
|
|
5
|
+
import { TicketingSettingsClient } from './client.js';
|
|
6
6
|
|
|
7
7
|
const TicketingSettingsView = ({ initPageResult }) => {
|
|
8
8
|
const { req, visibleEntities } = initPageResult;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
4
|
-
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation';
|
|
4
|
+
import { useTranslation } from '../../components/TicketConversation/hooks/useTranslation.js';
|
|
5
5
|
|
|
6
6
|
function formatDuration(minutes) {
|
|
7
7
|
const h = Math.floor(minutes / 60);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DefaultTemplate } from '@payloadcms/next/templates';
|
|
3
3
|
import { redirect } from 'next/navigation';
|
|
4
|
-
import { AdminErrorBoundary } from '../shared/ErrorBoundary';
|
|
5
|
-
import { TimeDashboardClient } from './client';
|
|
4
|
+
import { AdminErrorBoundary } from '../shared/ErrorBoundary.js';
|
|
5
|
+
import { TimeDashboardClient } from './client.js';
|
|
6
6
|
|
|
7
7
|
const TimeDashboardView = ({ initPageResult }) => {
|
|
8
8
|
const { req, visibleEntities } = initPageResult;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { AdminErrorBoundary } from './ErrorBoundary';
|
|
2
|
-
export { V, btnStyle } from './adminTokens';
|
|
3
|
-
export { AdminViewHeader } from './AdminViewHeader';
|
|
4
|
-
export { Skeleton, SkeletonCard, SkeletonDashboard, SkeletonTable, SkeletonText } from './Skeleton';
|
|
5
|
-
export { DEFAULT_FEATURES, getFeatures, saveFeatures } from './config';
|
|
1
|
+
export { AdminErrorBoundary } from './ErrorBoundary.js';
|
|
2
|
+
export { V, btnStyle } from './adminTokens.js';
|
|
3
|
+
export { AdminViewHeader } from './AdminViewHeader.js';
|
|
4
|
+
export { Skeleton, SkeletonCard, SkeletonDashboard, SkeletonTable, SkeletonText } from './Skeleton.js';
|
|
5
|
+
export { DEFAULT_FEATURES, getFeatures, saveFeatures } from './config.js';
|
package/dist/views.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { default as TicketInboxView } from './views/TicketInboxView/index';
|
|
2
|
-
export { default as TicketDetailView } from './views/TicketDetailView/index';
|
|
3
|
-
export { default as SupportDashboardView } from './views/SupportDashboardView/index';
|
|
4
|
-
export { default as NewTicketView } from './views/NewTicketView/index';
|
|
5
|
-
export { default as TicketingSettingsView } from './views/TicketingSettingsView/index';
|
|
6
|
-
export { default as LogsView } from './views/LogsView/index';
|
|
7
|
-
export { default as ChatView } from './views/ChatView/index';
|
|
8
|
-
export { default as CrmView } from './views/CrmView/index';
|
|
9
|
-
export { default as PendingEmailsView } from './views/PendingEmailsView/index';
|
|
10
|
-
export { default as EmailTrackingView } from './views/EmailTrackingView/index';
|
|
11
|
-
export { default as BillingView } from './views/BillingView/index';
|
|
12
|
-
export { default as TimeDashboardView } from './views/TimeDashboardView/index';
|
|
13
|
-
export { default as ImportConversationView } from './views/ImportConversationView/index';
|
|
1
|
+
export { default as TicketInboxView } from './views/TicketInboxView/index.js';
|
|
2
|
+
export { default as TicketDetailView } from './views/TicketDetailView/index.js';
|
|
3
|
+
export { default as SupportDashboardView } from './views/SupportDashboardView/index.js';
|
|
4
|
+
export { default as NewTicketView } from './views/NewTicketView/index.js';
|
|
5
|
+
export { default as TicketingSettingsView } from './views/TicketingSettingsView/index.js';
|
|
6
|
+
export { default as LogsView } from './views/LogsView/index.js';
|
|
7
|
+
export { default as ChatView } from './views/ChatView/index.js';
|
|
8
|
+
export { default as CrmView } from './views/CrmView/index.js';
|
|
9
|
+
export { default as PendingEmailsView } from './views/PendingEmailsView/index.js';
|
|
10
|
+
export { default as EmailTrackingView } from './views/EmailTrackingView/index.js';
|
|
11
|
+
export { default as BillingView } from './views/BillingView/index.js';
|
|
12
|
+
export { default as TimeDashboardView } from './views/TimeDashboardView/index.js';
|
|
13
|
+
export { default as ImportConversationView } from './views/ImportConversationView/index.js';
|
package/package.json
CHANGED