@open-mercato/core 0.9.1-develop.7459.1.99e3accd30 → 0.9.1-develop.7464.1.9a392fca41
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/.turbo/turbo-build.log +1 -1
- package/dist/modules/attachments/api/route.js +29 -3
- package/dist/modules/attachments/api/route.js.map +2 -2
- package/dist/modules/attachments/lib/ocrLimits.js +49 -0
- package/dist/modules/attachments/lib/ocrLimits.js.map +7 -0
- package/dist/modules/attachments/lib/ocrQueue.js +76 -2
- package/dist/modules/attachments/lib/ocrQueue.js.map +2 -2
- package/dist/modules/attachments/lib/ocrService.js +4 -0
- package/dist/modules/attachments/lib/ocrService.js.map +2 -2
- package/dist/modules/attachments/lib/pdfProcessing.js +14 -2
- package/dist/modules/attachments/lib/pdfProcessing.js.map +2 -2
- package/dist/modules/attachments/lib/scoped-upload-service.js +4 -2
- package/dist/modules/attachments/lib/scoped-upload-service.js.map +2 -2
- package/dist/modules/attachments/lib/textExtraction.js +13 -1
- package/dist/modules/attachments/lib/textExtraction.js.map +2 -2
- package/dist/modules/catalog/search.js +3 -1
- package/dist/modules/catalog/search.js.map +2 -2
- package/dist/modules/communication_channels/api/get/oauth/[provider]/callback/route.js +2 -1
- package/dist/modules/communication_channels/api/get/oauth/[provider]/callback/route.js.map +2 -2
- package/dist/modules/communication_channels/backend/profile/communication-channels/page.js +10 -7
- package/dist/modules/communication_channels/backend/profile/communication-channels/page.js.map +2 -2
- package/dist/modules/communication_channels/lib/oauth-result.js +12 -0
- package/dist/modules/communication_channels/lib/oauth-result.js.map +7 -0
- package/dist/modules/customers/components/detail/ActivitiesSection.js +8 -1
- package/dist/modules/customers/components/detail/ActivitiesSection.js.map +2 -2
- package/package.json +7 -7
- package/src/modules/attachments/api/route.ts +36 -3
- package/src/modules/attachments/lib/ocrLimits.ts +62 -0
- package/src/modules/attachments/lib/ocrQueue.ts +95 -2
- package/src/modules/attachments/lib/ocrService.ts +4 -0
- package/src/modules/attachments/lib/pdfProcessing.ts +14 -2
- package/src/modules/attachments/lib/scoped-upload-service.ts +4 -2
- package/src/modules/attachments/lib/textExtraction.ts +14 -1
- package/src/modules/catalog/search.ts +5 -1
- package/src/modules/communication_channels/api/get/oauth/[provider]/callback/route.ts +2 -1
- package/src/modules/communication_channels/backend/profile/communication-channels/page.tsx +12 -9
- package/src/modules/communication_channels/i18n/de.json +0 -1
- package/src/modules/communication_channels/i18n/en.json +0 -1
- package/src/modules/communication_channels/i18n/es.json +0 -1
- package/src/modules/communication_channels/i18n/ko.json +0 -1
- package/src/modules/communication_channels/i18n/pl.json +0 -1
- package/src/modules/communication_channels/lib/oauth-result.ts +13 -0
- package/src/modules/customers/components/detail/ActivitiesSection.tsx +8 -1
|
@@ -107,7 +107,6 @@
|
|
|
107
107
|
"communication_channels.profile.flash.connected": "Channel connected.",
|
|
108
108
|
"communication_channels.profile.flash.connectedWithProvider": "Channel connected ({provider}).",
|
|
109
109
|
"communication_channels.profile.flash.error": "Failed to connect channel.",
|
|
110
|
-
"communication_channels.profile.flash.errorWithCode": "Failed to connect channel — {code}.",
|
|
111
110
|
"communication_channels.profile.flash.replayedState": "This connection link was already used — please start the connection again.",
|
|
112
111
|
"communication_channels.profile.flash.stateStoreUnavailable": "A server error prevented completing the connection. Please try again in a moment.",
|
|
113
112
|
"communication_channels.profile.group": "Profile",
|
|
@@ -107,7 +107,6 @@
|
|
|
107
107
|
"communication_channels.profile.flash.connected": "Canal conectado.",
|
|
108
108
|
"communication_channels.profile.flash.connectedWithProvider": "Canal conectado ({provider}).",
|
|
109
109
|
"communication_channels.profile.flash.error": "No se pudo conectar el canal.",
|
|
110
|
-
"communication_channels.profile.flash.errorWithCode": "No se pudo conectar el canal — {code}.",
|
|
111
110
|
"communication_channels.profile.flash.replayedState": "Este enlace de conexión ya se utilizó — inicia la conexión de nuevo.",
|
|
112
111
|
"communication_channels.profile.flash.stateStoreUnavailable": "Un error del servidor impidió completar la conexión. Inténtalo de nuevo en un momento.",
|
|
113
112
|
"communication_channels.profile.group": "Perfil",
|
|
@@ -107,7 +107,6 @@
|
|
|
107
107
|
"communication_channels.profile.flash.connected": "채널이 연결되었습니다.",
|
|
108
108
|
"communication_channels.profile.flash.connectedWithProvider": "채널이 연결되었습니다 ({provider}).",
|
|
109
109
|
"communication_channels.profile.flash.error": "채널 연결에 실패했습니다.",
|
|
110
|
-
"communication_channels.profile.flash.errorWithCode": "채널 연결에 실패했습니다 — {code}.",
|
|
111
110
|
"communication_channels.profile.flash.replayedState": "이 연결 링크는 이미 사용되었습니다. 연결을 다시 시작해 주세요.",
|
|
112
111
|
"communication_channels.profile.flash.stateStoreUnavailable": "서버 오류로 연결을 완료할 수 없습니다. 잠시 후 다시 시도해 주세요.",
|
|
113
112
|
"communication_channels.profile.group": "프로필",
|
|
@@ -107,7 +107,6 @@
|
|
|
107
107
|
"communication_channels.profile.flash.connected": "Kanał połączony.",
|
|
108
108
|
"communication_channels.profile.flash.connectedWithProvider": "Kanał połączony ({provider}).",
|
|
109
109
|
"communication_channels.profile.flash.error": "Nie udało się połączyć kanału.",
|
|
110
|
-
"communication_channels.profile.flash.errorWithCode": "Nie udało się połączyć kanału — {code}.",
|
|
111
110
|
"communication_channels.profile.flash.replayedState": "Ten link połączenia został już użyty — rozpocznij połączenie ponownie.",
|
|
112
111
|
"communication_channels.profile.flash.stateStoreUnavailable": "Błąd serwera uniemożliwił dokończenie połączenia. Spróbuj ponownie za chwilę.",
|
|
113
112
|
"communication_channels.profile.group": "Profil",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// The OAuth callback reports its outcome to the return page through this query
|
|
2
|
+
// param. It must not be `flash`: the global <FlashMessages> host reads `?flash=`
|
|
3
|
+
// as the message text and would render the raw outcome ("error"/"connected") as
|
|
4
|
+
// a success toast (#6402).
|
|
5
|
+
export const OAUTH_RESULT_QUERY_PARAM = 'oauth'
|
|
6
|
+
|
|
7
|
+
const OAUTH_RESULT_QUERY_PARAMS = [OAUTH_RESULT_QUERY_PARAM, 'code', 'provider', 'channelId']
|
|
8
|
+
|
|
9
|
+
export function stripOAuthResultParams(href: string): string {
|
|
10
|
+
const url = new URL(href)
|
|
11
|
+
for (const param of OAUTH_RESULT_QUERY_PARAMS) url.searchParams.delete(param)
|
|
12
|
+
return `${url.pathname}${url.search}${url.hash}`
|
|
13
|
+
}
|
|
@@ -109,6 +109,7 @@ export function ActivitiesSection({
|
|
|
109
109
|
useCanonicalInteractions = false,
|
|
110
110
|
onActionChange,
|
|
111
111
|
onLoadingChange,
|
|
112
|
+
onDataRefresh,
|
|
112
113
|
refreshKey = 0,
|
|
113
114
|
onEditActivity,
|
|
114
115
|
runGuardedMutation,
|
|
@@ -294,8 +295,14 @@ export function ActivitiesSection({
|
|
|
294
295
|
} catch (err) {
|
|
295
296
|
logger.warn('Mark done failed', { component: 'ActivitiesSection', activityId, err })
|
|
296
297
|
flash(t('customers.activities.actions.markDoneError', 'Could not mark activity as done'), 'error')
|
|
298
|
+
return
|
|
299
|
+
}
|
|
300
|
+
try {
|
|
301
|
+
await Promise.resolve(onDataRefresh?.())
|
|
302
|
+
} catch (err) {
|
|
303
|
+
logger.warn('Parent refresh after mark done failed', { component: 'ActivitiesSection', activityId, err })
|
|
297
304
|
}
|
|
298
|
-
}, [loadActivities, runGuardedMutation, t])
|
|
305
|
+
}, [loadActivities, onDataRefresh, runGuardedMutation, t])
|
|
299
306
|
|
|
300
307
|
const resolvedUserIdsRef = React.useRef(new Set<string>())
|
|
301
308
|
|