@adminide-stack/yantra-mobile 12.0.198-alpha.0 → 12.0.198
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/lib/features/canvas/CanvasExperience.js +8 -5
- package/lib/features/canvas/CanvasExperience.js.map +1 -1
- package/lib/features/canvas/boardActions.js +112 -6
- package/lib/features/canvas/boardActions.js.map +1 -1
- package/lib/features/canvas/home/TrashView.js +19 -7
- package/lib/features/canvas/home/TrashView.js.map +1 -1
- package/package.json +4 -4
|
@@ -491,18 +491,21 @@ function CanvasExperienceBody({
|
|
|
491
491
|
const boardManager = useMemo(() => {
|
|
492
492
|
if (!indexUrl || !token) return void 0;
|
|
493
493
|
const backend = deriveBackendGraphqlUrl(indexUrl);
|
|
494
|
+
const chat = backend ? {
|
|
495
|
+
url: backend,
|
|
496
|
+
token
|
|
497
|
+
} : null;
|
|
494
498
|
return {
|
|
499
|
+
// `chat` too: a hard delete reads and deletes the board's Media records there.
|
|
495
500
|
index: {
|
|
496
501
|
url: indexUrl,
|
|
497
502
|
token,
|
|
498
|
-
run: effectiveRunAction
|
|
503
|
+
run: effectiveRunAction,
|
|
504
|
+
chat
|
|
499
505
|
},
|
|
500
506
|
// Not the host's `uploadMedia`, which takes device files: this one reads any fetchable link.
|
|
501
507
|
uploadCopy: createRemoteUploadMedia(token, indexUrl),
|
|
502
|
-
chat
|
|
503
|
-
url: backend,
|
|
504
|
-
token
|
|
505
|
-
} : null,
|
|
508
|
+
chat,
|
|
506
509
|
refresh: reload,
|
|
507
510
|
onRemoved: (boardId) => setBoards((prev) => {
|
|
508
511
|
const next = prev.filter((entry) => entry.channelId !== boardId);
|