@q9labsai/chalk-react-native 4.1.15 → 4.1.17
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/LICENSE +21 -0
- package/README.md +11 -0
- package/dist/android.js +5 -2
- package/dist/{chunk-MK6OO4V7.js → chunk-2OS7SSXE.js} +6 -1
- package/dist/{chunk-4NLA35HE.js → chunk-ITLUHTVS.js} +1126 -644
- package/dist/client.js +1 -1
- package/dist/components/Chalk.d.ts +2 -1
- package/dist/components/Chalk.d.ts.map +1 -1
- package/dist/components/EmbeddedWhiteboard.d.ts.map +1 -1
- package/dist/components/SpaceView.d.ts +2 -1
- package/dist/components/SpaceView.d.ts.map +1 -1
- package/dist/components/SpaceView.shared.d.ts.map +1 -1
- package/dist/components/native-space-view/FeedbackSheet.d.ts +12 -0
- package/dist/components/native-space-view/FeedbackSheet.d.ts.map +1 -0
- package/dist/components/native-space-view/SpaceActionMenu.d.ts +2 -1
- package/dist/components/native-space-view/SpaceActionMenu.d.ts.map +1 -1
- package/dist/components/native-space-view/SpaceChatAttachment.d.ts +8 -0
- package/dist/components/native-space-view/SpaceChatAttachment.d.ts.map +1 -0
- package/dist/components/native-space-view/SpaceChatSheet.d.ts.map +1 -1
- package/dist/components/native-space-view/SpaceMoreSheet.d.ts +2 -1
- package/dist/components/native-space-view/SpaceMoreSheet.d.ts.map +1 -1
- package/dist/components/native-space-view/SpaceTopBar.android.d.ts +3 -1
- package/dist/components/native-space-view/SpaceTopBar.android.d.ts.map +1 -1
- package/dist/components/native-space-view/screen-share-availability.d.ts +4 -1
- package/dist/components/native-space-view/screen-share-availability.d.ts.map +1 -1
- package/dist/components/native-space-view/space-chat-attachments.d.ts.map +1 -1
- package/dist/components/native-space-view/useSpaceViewController.d.ts +8 -2
- package/dist/components/native-space-view/useSpaceViewController.d.ts.map +1 -1
- package/dist/feedback/native-capture.d.ts +9 -0
- package/dist/feedback/native-capture.d.ts.map +1 -0
- package/dist/feedback/native-evidence.d.ts +3 -0
- package/dist/feedback/native-evidence.d.ts.map +1 -0
- package/dist/hooks/space-hooks.d.ts +1 -0
- package/dist/hooks/space-hooks.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/ios-pad.js +5 -2
- package/dist/ios-phone.js +5 -2
- package/dist/ios.js +5 -2
- package/dist/macos.js +5 -2
- package/dist/space-client/create-native-space-client.d.ts +2 -0
- package/dist/space-client/create-native-space-client.d.ts.map +1 -1
- package/dist/whiteboard/embedded-whiteboard-viewport.d.ts +3 -0
- package/dist/whiteboard/embedded-whiteboard-viewport.d.ts.map +1 -0
- package/embedded/chalk-whiteboard/asset-manifest.json +2 -2
- package/embedded/chalk-whiteboard/renderer.js +581 -581
- package/package.json +8 -6
- package/src/components/Chalk.tsx +6 -2
- package/src/components/EmbeddedWhiteboard.tsx +14 -5
- package/src/components/SpaceView.shared.tsx +58 -47
- package/src/components/SpaceView.tsx +2 -1
- package/src/components/native-space-view/FeedbackSheet.tsx +296 -0
- package/src/components/native-space-view/SpaceActionMenu.tsx +23 -3
- package/src/components/native-space-view/SpaceChatAttachment.tsx +105 -0
- package/src/components/native-space-view/SpaceChatSheet.tsx +14 -9
- package/src/components/native-space-view/SpaceMoreSheet.tsx +35 -6
- package/src/components/native-space-view/SpaceTopBar.android.tsx +16 -1
- package/src/components/native-space-view/screen-share-availability.test.ts +16 -0
- package/src/components/native-space-view/screen-share-availability.ts +4 -1
- package/src/components/native-space-view/space-chat-attachments.test.ts +26 -0
- package/src/components/native-space-view/space-chat-attachments.ts +2 -4
- package/src/components/native-space-view/useSpaceViewController.ts +28 -8
- package/src/feedback/native-capture.ts +62 -0
- package/src/feedback/native-evidence.ts +37 -0
- package/src/hooks/space-hooks.ts +4 -0
- package/src/index.ts +1 -1
- package/src/space-client/create-native-space-client.ts +7 -0
- package/src/whiteboard/embedded-whiteboard-viewport.test.ts +13 -0
- package/src/whiteboard/embedded-whiteboard-viewport.ts +6 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Q9Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -24,6 +24,17 @@ export function SpaceScreen() {
|
|
|
24
24
|
the join request. The native experience has focus, grid, and presentation
|
|
25
25
|
layouts, and `features.settings` is enabled unless explicitly set to `false`.
|
|
26
26
|
|
|
27
|
+
## Feedback
|
|
28
|
+
|
|
29
|
+
The Space action menu includes Feedback. It captures only the Chalk-owned native
|
|
30
|
+
view, shows a removable or refreshable preview, and sends bounded Journey,
|
|
31
|
+
trace, runtime, and diagnostic context directly to Chalk. Capture failures and
|
|
32
|
+
unsupported macOS native capture never block the message.
|
|
33
|
+
|
|
34
|
+
The host app must install the `react-native-view-shot` peer dependency.
|
|
35
|
+
Embedded products use the default `embedded` source; Chalk's mobile app
|
|
36
|
+
configures `chalk_mobile`.
|
|
37
|
+
|
|
27
38
|
The platform subpaths (`android`, `ios`, `ios-phone`, `ios-pad`, and `macos`)
|
|
28
39
|
export the same public surface as the root package.
|
|
29
40
|
|
package/dist/android.js
CHANGED
|
@@ -10,10 +10,11 @@ import {
|
|
|
10
10
|
useMedia,
|
|
11
11
|
useParticipants,
|
|
12
12
|
useReactions,
|
|
13
|
+
useRecording,
|
|
13
14
|
useSelf,
|
|
14
15
|
useSpaceClient,
|
|
15
16
|
useWhiteboard
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ITLUHTVS.js";
|
|
17
18
|
import {
|
|
18
19
|
THEME_PALETTES,
|
|
19
20
|
THEME_TEXTURES,
|
|
@@ -25,7 +26,8 @@ import {
|
|
|
25
26
|
Theme,
|
|
26
27
|
createNativeTheme
|
|
27
28
|
} from "./chunk-JB4LNWVP.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-2OS7SSXE.js";
|
|
30
|
+
import "./chunk-F3NPRVHO.js";
|
|
29
31
|
import {
|
|
30
32
|
extractSpaceInviteFromLink,
|
|
31
33
|
getClipboardInviteSuggestion,
|
|
@@ -53,6 +55,7 @@ export {
|
|
|
53
55
|
useMedia,
|
|
54
56
|
useParticipants,
|
|
55
57
|
useReactions,
|
|
58
|
+
useRecording,
|
|
56
59
|
useSelf,
|
|
57
60
|
useSpaceClient,
|
|
58
61
|
useWhiteboard
|
|
@@ -308,7 +308,9 @@ function createNativeSpaceClient(options) {
|
|
|
308
308
|
syncStartupTimeoutMs: options.syncStartupTimeoutMs ?? 3e4,
|
|
309
309
|
initialMicrophoneEnabled: options.microphone,
|
|
310
310
|
initialCameraEnabled: options.camera,
|
|
311
|
-
onConnectionDiagnostic: (event) => journey?.recordDiagnostic(connectionDiagnostic(event))
|
|
311
|
+
onConnectionDiagnostic: (event) => journey?.recordDiagnostic(connectionDiagnostic(event)),
|
|
312
|
+
...journey ? { recordReconnect: (observation) => journey.recordDiagnostic(observation) } : {},
|
|
313
|
+
feedbackSource: options.feedbackSource ?? "embedded"
|
|
312
314
|
}
|
|
313
315
|
);
|
|
314
316
|
bindNativeAuthenticatedTelemetry(client, journey);
|
|
@@ -368,6 +370,7 @@ function createMediaClient(apiBaseURL, input, fetch, observePeerConnection, jour
|
|
|
368
370
|
participantId: subject.participantId,
|
|
369
371
|
transport: createCloudflareSFUHTTPTransport({
|
|
370
372
|
apiBaseURL,
|
|
373
|
+
telemetry: input.telemetry,
|
|
371
374
|
credential: () => authenticatedNativeCredential(input.credential, journey),
|
|
372
375
|
tenantId: subject.tenantId,
|
|
373
376
|
spaceId: subject.spaceId,
|
|
@@ -385,6 +388,7 @@ function createMediaClient(apiBaseURL, input, fetch, observePeerConnection, jour
|
|
|
385
388
|
observePeerConnection?.(connection);
|
|
386
389
|
return connection;
|
|
387
390
|
},
|
|
391
|
+
recordReconnect: input.recordReconnect,
|
|
388
392
|
onError: input.onFailure,
|
|
389
393
|
onScreenEnded: input.onScreenEnded
|
|
390
394
|
});
|
|
@@ -437,6 +441,7 @@ function createSyncClient(syncURL, input, lifecycle, webSocket, storage) {
|
|
|
437
441
|
lifecycle,
|
|
438
442
|
webSocket,
|
|
439
443
|
telemetry: input.telemetry,
|
|
444
|
+
recordReconnect: input.recordReconnect,
|
|
440
445
|
...storage ? { pendingStore: new AsyncStorageV1PendingTargetStore({ scope, storage }) } : {}
|
|
441
446
|
});
|
|
442
447
|
}
|