@opengeni/react-native 6.5.2-canary.41607687019001 → 6.7.0
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/{chunk-7ISTEDPD.js → chunk-6SF5EQRS.js} +13 -3
- package/dist/chunk-6SF5EQRS.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/meetings/index.js +3 -3
- package/dist/timeline/index.js +3 -3
- package/dist/timeline/previews.js +1 -1
- package/package.json +5 -6
- package/src/timeline/decisions.tsx +16 -0
- package/dist/chunk-7ISTEDPD.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@ export { NativeTranscriptionError, appendDictation, isRetryableTranscriptionErro
|
|
|
2
2
|
import { humanInputAnswerLines } from './chunk-6D7LKJOZ.js';
|
|
3
3
|
import { useOpenGeniReactNativeEnvironment, useOpenNativeLink } from './chunk-6BMCWK7G.js';
|
|
4
4
|
export { OpenGeniReactNativeProvider, installOpenGeniReactNativeEnvironment, useOpenGeniReactNativeEnvironment, useOpenNativeLink } from './chunk-6BMCWK7G.js';
|
|
5
|
-
import { useNativeTimelineTheme, Icon, fontStyle } from './chunk-4IFOWV3O.js';
|
|
6
5
|
export { createHydratedPersistenceAdapter, sha256HexToArrayBuffer } from './chunk-7ZDF5VGA.js';
|
|
6
|
+
import { useNativeTimelineTheme, Icon, fontStyle } from './chunk-4IFOWV3O.js';
|
|
7
7
|
import './chunk-V4OQ3NZ2.js';
|
|
8
8
|
import { createContext, useState, useRef, useLayoutEffect, useEffect, useCallback, useMemo, useContext } from 'react';
|
|
9
9
|
import { useOpenGeniText, SingleSendWording } from '@opengeni/react/messages';
|
package/dist/meetings/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useNativeRecorderPlatform } from '../chunk-HTDXQMUM.js';
|
|
2
|
-
import { Button, BottomSheet } from '../chunk-
|
|
2
|
+
import { Button, BottomSheet } from '../chunk-6SF5EQRS.js';
|
|
3
|
+
import '../chunk-6D7LKJOZ.js';
|
|
3
4
|
import { withAlpha } from '../chunk-23Y3ABT4.js';
|
|
4
5
|
import '../chunk-PUHPX2OL.js';
|
|
5
|
-
import '../chunk-6D7LKJOZ.js';
|
|
6
6
|
import '../chunk-6BMCWK7G.js';
|
|
7
|
-
import { useNativeTimelineTheme, fontStyle, Icon } from '../chunk-4IFOWV3O.js';
|
|
8
7
|
import '../chunk-7ZDF5VGA.js';
|
|
8
|
+
import { useNativeTimelineTheme, fontStyle, Icon } from '../chunk-4IFOWV3O.js';
|
|
9
9
|
import '../chunk-V4OQ3NZ2.js';
|
|
10
10
|
import { useRecorder, useRecordings, useRecordingModels, meetingHereStatus, meetingStatusLabel, meetingPhase, formatDuration, meetingTitle, formatClock, groupLiveTurns, tidyPartialText, tidyLiveText, useRecording, useTranscript, groupTranscriptTurns, useRecordingPeople, transcribingText, transcriptErrorText, versionSummary, speakerDisplayName, speakerIsNamed } from '@opengeni/react/recordings';
|
|
11
11
|
import { createContext, useMemo, useEffect, useSyncExternalStore, useState, useRef, useLayoutEffect, useContext, useCallback } from 'react';
|
package/dist/timeline/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { ActivityRail, ActivityRow, AnnotationsChip, AnnotationsSheet, ApprovalStrip, AttachmentChips, BottomSheet, Button, ComposerPill, FeedbackSheet, HumanInputCard, IconButton, MessageTimeline, ModelMark, ModelPickerSheet, NativeAuthNeededRow, NativeConnectSetup, NativeInboxList, NativeIntegrationCapabilityCard, NativeMcpCapabilityCard, NativeMessageAttachments, NativePreparedMcpSetupCard, NativeSessionScreen, PreparingState, PresentedToolRow, QueueDock, RollingActivity, SectionLabel, SecureValueInput, SessionActionsButton, SessionCommandsList, SessionComposer, SessionHeaderTitle, SessionRow, SessionRowList, SessionSignals, SessionStatusBadge, StatusDot, TurnFeedbackButtons, TurnRailFrame, TurnSummary, defaultApprovalStripMessages, isNeedsYouKind, nativeConnectWindowHost, nativeInboxAttentionCount, useNativeInChatConnect, useNativeInbox, useTurnRatings } from '../chunk-
|
|
1
|
+
export { ActivityRail, ActivityRow, AnnotationsChip, AnnotationsSheet, ApprovalStrip, AttachmentChips, BottomSheet, Button, ComposerPill, FeedbackSheet, HumanInputCard, IconButton, MessageTimeline, ModelMark, ModelPickerSheet, NativeAuthNeededRow, NativeConnectSetup, NativeInboxList, NativeIntegrationCapabilityCard, NativeMcpCapabilityCard, NativeMessageAttachments, NativePreparedMcpSetupCard, NativeSessionScreen, PreparingState, PresentedToolRow, QueueDock, RollingActivity, SectionLabel, SecureValueInput, SessionActionsButton, SessionCommandsList, SessionComposer, SessionHeaderTitle, SessionRow, SessionRowList, SessionSignals, SessionStatusBadge, StatusDot, TurnFeedbackButtons, TurnRailFrame, TurnSummary, defaultApprovalStripMessages, isNeedsYouKind, nativeConnectWindowHost, nativeInboxAttentionCount, useNativeInChatConnect, useNativeInbox, useTurnRatings } from '../chunk-6SF5EQRS.js';
|
|
2
|
+
import '../chunk-6D7LKJOZ.js';
|
|
2
3
|
export { ActivityDisclosure, BodyNote, Chip, NativeTimelineMessagesProvider, PayloadBlock, PulseDot, ShimmerText, TermBlock, defaultNativeTimelineMessages, useNativeTimelineMessages, withAlpha } from '../chunk-23Y3ABT4.js';
|
|
3
4
|
export { NativeImageViewer } from '../chunk-PUHPX2OL.js';
|
|
4
|
-
import '../chunk-6D7LKJOZ.js';
|
|
5
5
|
import '../chunk-6BMCWK7G.js';
|
|
6
|
-
export { BAR_MAX_FONT_SCALE, HEADING_MAX_FONT_SCALE, Icon, NativeTimelineThemeProvider, createNativeTimelineTheme, fontStyle, useNativeTimelineTheme, webColorsDark, webColorsLight } from '../chunk-4IFOWV3O.js';
|
|
7
6
|
import '../chunk-7ZDF5VGA.js';
|
|
7
|
+
export { BAR_MAX_FONT_SCALE, HEADING_MAX_FONT_SCALE, Icon, NativeTimelineThemeProvider, createNativeTimelineTheme, fontStyle, useNativeTimelineTheme, webColorsDark, webColorsLight } from '../chunk-4IFOWV3O.js';
|
|
8
8
|
import '../chunk-V4OQ3NZ2.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NativeImageViewer } from '../chunk-PUHPX2OL.js';
|
|
2
2
|
import { useOpenNativeLink } from '../chunk-6BMCWK7G.js';
|
|
3
|
-
import { useNativeTimelineTheme, Icon, fontStyle } from '../chunk-4IFOWV3O.js';
|
|
4
3
|
import '../chunk-7ZDF5VGA.js';
|
|
4
|
+
import { useNativeTimelineTheme, Icon, fontStyle } from '../chunk-4IFOWV3O.js';
|
|
5
5
|
import '../chunk-V4OQ3NZ2.js';
|
|
6
6
|
import { previewLoadingDocument, inlineHtmlDocument, parseSiteFence, loadSiteSnapshot } from '@opengeni/react/native-previews';
|
|
7
7
|
import { parseRetainedFileReference } from '@opengeni/sdk';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/react-native",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"description": "React Native and Expo kit for Opengeni agents: the native session timeline, composer adapters, voice dictation, and realtime voice calls (CallKit) on the same SDK controllers as the web.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"prepublishOnly": "bash ../../scripts/prepublish-guard"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@opengeni/contracts": "6.
|
|
80
|
-
"@opengeni/react": "6.
|
|
81
|
-
"@opengeni/sdk": "6.
|
|
79
|
+
"@opengeni/contracts": "6.7.0",
|
|
80
|
+
"@opengeni/react": "6.7.0",
|
|
81
|
+
"@opengeni/sdk": "6.7.0",
|
|
82
82
|
"thinking-orbs": "^0.3.1"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
@@ -109,6 +109,5 @@
|
|
|
109
109
|
"react-native-webview": {
|
|
110
110
|
"optional": true
|
|
111
111
|
}
|
|
112
|
-
}
|
|
113
|
-
"gitHead": "041e773bc7a4e5e1ecd9f3667659f29f4599e441"
|
|
112
|
+
}
|
|
114
113
|
}
|
|
@@ -910,6 +910,9 @@ export function ApprovalStrip({ approvals, onDecide, messages: overrides }: Appr
|
|
|
910
910
|
const [pending, setPending] = useState<Record<string, "approve" | "reject">>({});
|
|
911
911
|
const [settled, setSettled] = useState<Record<string, "approve" | "reject">>({});
|
|
912
912
|
const [details, setDetails] = useState<Record<string, boolean>>({});
|
|
913
|
+
// Why a decision was refused, such as an action only its account's owner
|
|
914
|
+
// can approve: shown on the card, which stays open to decide again.
|
|
915
|
+
const [failures, setFailures] = useState<Record<string, string>>({});
|
|
913
916
|
// Answers in progress, each tied to the question it answers: a server that
|
|
914
917
|
// asks again on the same call starts a fresh answer and a live card.
|
|
915
918
|
const [answers, setAnswers] = useState<
|
|
@@ -927,9 +930,17 @@ export function ApprovalStrip({ approvals, onDecide, messages: overrides }: Appr
|
|
|
927
930
|
if (inFlight.current.has(key)) return;
|
|
928
931
|
inFlight.current.add(key);
|
|
929
932
|
setPending((current) => ({ ...current, [key]: decision }));
|
|
933
|
+
setFailures((current) => {
|
|
934
|
+
const next = { ...current };
|
|
935
|
+
delete next[key];
|
|
936
|
+
return next;
|
|
937
|
+
});
|
|
930
938
|
try {
|
|
931
939
|
await (answer ? onDecide(id, decision, answer) : onDecide(id, decision));
|
|
932
940
|
setSettled((current) => ({ ...current, [key]: decision }));
|
|
941
|
+
} catch (error) {
|
|
942
|
+
const message = error instanceof Error && error.message ? error.message : String(error);
|
|
943
|
+
setFailures((current) => ({ ...current, [key]: message }));
|
|
933
944
|
} finally {
|
|
934
945
|
inFlight.current.delete(key);
|
|
935
946
|
setPending((current) => {
|
|
@@ -1068,6 +1079,11 @@ export function ApprovalStrip({ approvals, onDecide, messages: overrides }: Appr
|
|
|
1068
1079
|
) : null}
|
|
1069
1080
|
</>
|
|
1070
1081
|
) : null}
|
|
1082
|
+
{failures[key] ? (
|
|
1083
|
+
<Text accessibilityRole="alert" style={{ ...small, color: c["status-failed"] }}>
|
|
1084
|
+
{failures[key]}
|
|
1085
|
+
</Text>
|
|
1086
|
+
) : null}
|
|
1071
1087
|
{note && !answering ? (
|
|
1072
1088
|
<Text style={{ ...body, color: c["fg-muted"] }}>{note}</Text>
|
|
1073
1089
|
) : null}
|