synapse-react-client 4.0.7 → 4.0.8

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.
Files changed (53) hide show
  1. package/dist/SWC.index.js +1 -1
  2. package/dist/components/DataGrid/DataGridTypes.d.ts +8 -2
  3. package/dist/components/DataGrid/DataGridTypes.d.ts.map +1 -1
  4. package/dist/components/DataGrid/DataGridTypes.js.map +1 -1
  5. package/dist/components/DataGrid/SynapseGrid.d.ts.map +1 -1
  6. package/dist/components/DataGrid/SynapseGrid.js +190 -176
  7. package/dist/components/DataGrid/SynapseGrid.js.map +1 -1
  8. package/dist/components/DataGrid/hooks/useGridReplicaUsers.d.ts +15 -0
  9. package/dist/components/DataGrid/hooks/useGridReplicaUsers.d.ts.map +1 -0
  10. package/dist/components/DataGrid/hooks/useGridReplicaUsers.js +55 -0
  11. package/dist/components/DataGrid/hooks/useGridReplicaUsers.js.map +1 -0
  12. package/dist/components/DataGrid/utils/DataGridUtils.js +31 -31
  13. package/dist/components/DataGrid/utils/DataGridUtils.js.map +1 -1
  14. package/dist/components/DataGrid/utils/applyModelChange.d.ts +1 -1
  15. package/dist/components/DataGrid/utils/applyModelChange.d.ts.map +1 -1
  16. package/dist/components/DataGrid/utils/applyModelChange.js +28 -23
  17. package/dist/components/DataGrid/utils/applyModelChange.js.map +1 -1
  18. package/dist/components/DataGrid/utils/columnFactory.d.ts.map +1 -1
  19. package/dist/components/DataGrid/utils/columnFactory.js +90 -49
  20. package/dist/components/DataGrid/utils/columnFactory.js.map +1 -1
  21. package/dist/components/DataGrid/utils/enrichRowsWithChangeInfo.d.ts +14 -0
  22. package/dist/components/DataGrid/utils/enrichRowsWithChangeInfo.d.ts.map +1 -0
  23. package/dist/components/DataGrid/utils/enrichRowsWithChangeInfo.js +24 -0
  24. package/dist/components/DataGrid/utils/enrichRowsWithChangeInfo.js.map +1 -0
  25. package/dist/components/DataGrid/utils/getCellAuthorSid.d.ts +7 -0
  26. package/dist/components/DataGrid/utils/getCellAuthorSid.d.ts.map +1 -0
  27. package/dist/components/DataGrid/utils/getCellAuthorSid.js +11 -0
  28. package/dist/components/DataGrid/utils/getCellAuthorSid.js.map +1 -0
  29. package/dist/components/DataGrid/utils/getCellClassName.d.ts +0 -1
  30. package/dist/components/DataGrid/utils/getCellClassName.d.ts.map +1 -1
  31. package/dist/components/DataGrid/utils/getCellClassName.js +19 -17
  32. package/dist/components/DataGrid/utils/getCellClassName.js.map +1 -1
  33. package/dist/components/DataGrid/utils/getChangeTooltipText.d.ts +7 -0
  34. package/dist/components/DataGrid/utils/getChangeTooltipText.d.ts.map +1 -0
  35. package/dist/components/DataGrid/utils/getChangeTooltipText.js +18 -0
  36. package/dist/components/DataGrid/utils/getChangeTooltipText.js.map +1 -0
  37. package/dist/components/DataGrid/utils/getReplicaCategory.d.ts +12 -0
  38. package/dist/components/DataGrid/utils/getReplicaCategory.d.ts.map +1 -0
  39. package/dist/components/DataGrid/utils/getReplicaCategory.js +13 -0
  40. package/dist/components/DataGrid/utils/getReplicaCategory.js.map +1 -0
  41. package/dist/features/entity/metadata-task/utils/getCreateGridRequestForMetadataTask.d.ts.map +1 -1
  42. package/dist/features/entity/metadata-task/utils/getCreateGridRequestForMetadataTask.js +4 -8
  43. package/dist/features/entity/metadata-task/utils/getCreateGridRequestForMetadataTask.js.map +1 -1
  44. package/dist/style/components/_data-grid-extra.css +1 -1
  45. package/dist/style/components/_data-grid-extra.scss +33 -0
  46. package/dist/synapse-queries/index.js +42 -41
  47. package/dist/synapse-queries/user/index.js +17 -16
  48. package/dist/synapse-queries/user/useUserBundle.d.ts +9 -0
  49. package/dist/synapse-queries/user/useUserBundle.d.ts.map +1 -1
  50. package/dist/synapse-queries/user/useUserBundle.js +45 -37
  51. package/dist/synapse-queries/user/useUserBundle.js.map +1 -1
  52. package/dist/tsconfig.build.tsbuildinfo +1 -1
  53. package/package.json +5 -5
@@ -1,17 +1,17 @@
1
- import { jsx as t, jsxs as n, Fragment as w } from "react/jsx-runtime";
2
- import nt from "./components/GridMenuButton/GridMenuButton.js";
3
- import mt from "./components/UploadCsvToGridButton.js";
4
- import pt from "./components/ExportCsvFromGridButton.js";
5
- import st from "./hooks/useGetSchemaForGrid.js";
6
- import ct from "./MergeGridWithSourceTableButton.js";
7
- import lt from "./utils/computeReplicaSelectionModel.js";
8
- import dt from "./utils/modelRowsToGrid.js";
1
+ import { jsx as t, jsxs as n, Fragment as U } from "react/jsx-runtime";
2
+ import st from "./components/GridMenuButton/GridMenuButton.js";
3
+ import ct from "./components/UploadCsvToGridButton.js";
4
+ import lt from "./components/ExportCsvFromGridButton.js";
5
+ import dt from "./hooks/useGetSchemaForGrid.js";
6
+ import at from "./MergeGridWithSourceTableButton.js";
7
+ import ut from "./utils/computeReplicaSelectionModel.js";
8
+ import ht from "./utils/modelRowsToGrid.js";
9
9
  import "../../assets/icons/error_page/maintenance.svg.js";
10
10
  import "../../assets/icons/error_page/no-access.svg.js";
11
11
  import "../../assets/icons/error_page/unavailable.svg.js";
12
12
  import "../../utils/PermissionLevelToAccessType.js";
13
13
  import "../../utils/SynapseConstants.js";
14
- import { forwardRef as at, useState as S, useRef as I, useCallback as d, useImperativeHandle as ut, useEffect as R, useMemo as P } from "react";
14
+ import { forwardRef as ft, useState as I, useRef as S, useCallback as a, useImperativeHandle as gt, useEffect as E, useMemo as N } from "react";
15
15
  import "../../synapse-client/SynapseClient.js";
16
16
  import "@sage-bionetworks/synapse-client/generated/models/ErrorResponseCode";
17
17
  import "@sage-bionetworks/synapse-client/generated/models/TwoFactorAuthErrorResponse";
@@ -27,11 +27,11 @@ import "@tanstack/query-core";
27
27
  import "lodash-es/isEmpty";
28
28
  import "lodash-es/isEqual";
29
29
  import "lodash-es/xorWith";
30
- import { Tooltip as ht, Stack as ft } from "@mui/material";
30
+ import { Tooltip as It, Stack as St } from "@mui/material";
31
31
  import "@sage-bionetworks/synapse-client";
32
- import { useGetEntity as gt } from "../../synapse-queries/entity/useEntity.js";
32
+ import { useGetEntity as Ct } from "../../synapse-queries/entity/useEntity.js";
33
33
  import "../../utils/types/IsType.js";
34
- import { useGetCurrentUserBundle as St } from "../../synapse-queries/user/useUserBundle.js";
34
+ import { useGetCurrentUserBundle as Rt } from "../../synapse-queries/user/useUserBundle.js";
35
35
  import "../../utils/hooks/useCookiePreferences.js";
36
36
  import "../../utils/hooks/useSourceAppConfigs.js";
37
37
  import "universal-cookie";
@@ -43,7 +43,7 @@ import "react-router";
43
43
  import "@mui/icons-material/Close";
44
44
  import "../styled/StyledPopover.js";
45
45
  import "../Markdown/MarkdownSynapse.js";
46
- import { SmartToyTwoTone as It } from "@mui/icons-material";
46
+ import { SmartToyTwoTone as yt } from "@mui/icons-material";
47
47
  import "react-hot-toast";
48
48
  import "react-transition-group";
49
49
  /* empty css */
@@ -114,7 +114,7 @@ import "../QueryContext/QueryContext.js";
114
114
  import "../QueryVisualizationWrapper/QueryVisualizationContext.js";
115
115
  import "react-share";
116
116
  import "../GenericCard/GenericCard.js";
117
- import { SkeletonTable as Ct } from "../Skeleton/SkeletonTable.js";
117
+ import { SkeletonTable as Et } from "../Skeleton/SkeletonTable.js";
118
118
  import "@mui/system";
119
119
  import "../GenericCard/Linkify.js";
120
120
  import "jotai";
@@ -218,171 +218,185 @@ import "react-draggable";
218
218
  import "../TimelinePlot/phasesQueryResponseData.js";
219
219
  import "../EntityHeaderTable/EntityHeaderTable.js";
220
220
  import "../MuiContainer.js";
221
- import s from "@mui/material/Grid";
221
+ import c from "@mui/material/Grid";
222
222
  import "@mui/icons-material/ArrowForwardIos";
223
223
  import "../PortalAclEditor/PortalAclEditor.js";
224
224
  import "../SynapseHomepageV2/HomepageStyles.js";
225
- import { getSchemaPropertiesInfo as yt } from "../../utils/jsonschema/getSchemaPropertyInfo.js";
226
- import { ClickableJsonCrdt as Rt } from "clickable-json";
227
- import { GridAgentChat as Et } from "../SynapseChat/GridAgentChat.js";
228
- import xt from "./DataGrid.js";
229
- import { useGridUndoRedo as Gt } from "./hooks/useGridUndoRedo.js";
230
- import { StartGridSession as vt } from "./StartGridSession.js";
231
- import { useDataGridWebSocket as bt } from "./useDataGridWebsocket.js";
232
- import { applyModelChange as Tt } from "./utils/applyModelChange.js";
233
- import { removeNoOpOperations as wt } from "./utils/DataGridUtils.js";
234
- import { mapOperationsToModelChanges as Nt } from "./utils/mapOperationsToModelChanges.js";
235
- import { useListGridReplicas as kt } from "../../synapse-queries/grid/useGridSession.js";
236
- import { useRemoteSelections as Ot } from "./hooks/useRemoteSelections.js";
237
- import zt from "../AccessRequirementList/RequirementItem/CertificationRequirement.js";
238
- import { ValidationAlert as Mt } from "./components/ValidationAlert.js";
239
- const en = at(
240
- ({ agentRegistrationId: A, showDebugInfo: E = !1 }, j) => {
241
- const [o, F] = S(null), [m, J] = S(null), [W, N] = S(!1), [H, k] = S(
225
+ import { getSchemaPropertiesInfo as xt } from "../../utils/jsonschema/getSchemaPropertyInfo.js";
226
+ import { ClickableJsonCrdt as Gt } from "clickable-json";
227
+ import { GridAgentChat as vt } from "../SynapseChat/GridAgentChat.js";
228
+ import bt from "./DataGrid.js";
229
+ import { useGridUndoRedo as wt } from "./hooks/useGridUndoRedo.js";
230
+ import { StartGridSession as Tt } from "./StartGridSession.js";
231
+ import { useDataGridWebSocket as Ut } from "./useDataGridWebsocket.js";
232
+ import { applyModelChange as Nt } from "./utils/applyModelChange.js";
233
+ import { removeNoOpOperations as kt } from "./utils/DataGridUtils.js";
234
+ import { mapOperationsToModelChanges as Mt } from "./utils/mapOperationsToModelChanges.js";
235
+ import { useListGridReplicas as Ot } from "../../synapse-queries/grid/useGridSession.js";
236
+ import { useGridReplicaUsers as zt } from "./hooks/useGridReplicaUsers.js";
237
+ import { useRemoteSelections as Dt } from "./hooks/useRemoteSelections.js";
238
+ import { enrichRowsWithChangeInfo as Lt } from "./utils/enrichRowsWithChangeInfo.js";
239
+ import Bt from "../AccessRequirementList/RequirementItem/CertificationRequirement.js";
240
+ import { ValidationAlert as Pt } from "./components/ValidationAlert.js";
241
+ const dn = ft(
242
+ ({ agentRegistrationId: F, showDebugInfo: x = !1 }, J) => {
243
+ const [o, V] = I(null), [p, W] = I(null), [H, k] = I(!1), [_, M] = I(
242
244
  null
243
- ), h = I(null), f = I(null), { data: V, isLoading: _ } = St(), { data: x = [], refetch: O } = kt(o?.sessionId), G = d(() => {
245
+ ), f = S(null), g = S(null), { data: G, isLoading: $ } = Rt(), { data: C = [], refetch: O } = Ot(o?.sessionId), v = a(() => {
244
246
  O();
245
- }, [O]);
246
- ut(
247
- j,
247
+ }, [O]), q = G?.userId != null ? String(G.userId) : void 0, z = zt(
248
+ C,
249
+ p,
250
+ q
251
+ );
252
+ gt(
253
+ J,
248
254
  () => ({
249
- initializeGrid: (i) => {
250
- h.current && h.current.handleStartSession(i);
255
+ initializeGrid: (r) => {
256
+ f.current && f.current.handleStartSession(r);
251
257
  },
252
- loadExistingSession: (i) => {
253
- h.current && h.current.handleLoadSession(i);
258
+ loadExistingSession: (r) => {
259
+ f.current && f.current.handleLoadSession(r);
254
260
  }
255
261
  }),
256
262
  []
257
263
  );
258
264
  const {
259
- isConnected: p,
260
- websocketInstance: z,
261
- hasCompletedInitialSync: $,
265
+ isConnected: m,
266
+ websocketInstance: D,
267
+ hasCompletedInitialSync: Y,
262
268
  model: e,
263
- modelSnapshot: a,
264
- connect: M,
265
- presignedUrl: c,
266
- hasSufficientData: U
267
- } = bt({
268
- onGridReady: G,
269
- onReplicaConnected: G,
270
- onReplicaDisconnected: G
271
- }), C = I(null);
272
- R(() => {
273
- C.current = z;
274
- }, [z]);
275
- const v = I(null);
276
- R(() => {
277
- if (m == null || !o?.sessionId) {
278
- v.current = null;
269
+ modelSnapshot: s,
270
+ connect: L,
271
+ presignedUrl: l,
272
+ hasSufficientData: B
273
+ } = Ut({
274
+ onGridReady: v,
275
+ onReplicaConnected: v,
276
+ onReplicaDisconnected: v
277
+ }), R = S(null);
278
+ E(() => {
279
+ R.current = D;
280
+ }, [D]);
281
+ const b = S(null);
282
+ E(() => {
283
+ if (p == null || !o?.sessionId) {
284
+ b.current = null;
279
285
  return;
280
286
  }
281
- const i = {
282
- replicaId: m,
287
+ const r = {
288
+ replicaId: p,
283
289
  sessionId: o.sessionId
284
- }, r = v.current;
285
- r && r.replicaId === i.replicaId && r.sessionId === i.sessionId || (v.current = i, M(m, o.sessionId));
286
- }, [m, o?.sessionId, M]), R(() => {
287
- e === null && (k(null), f.current && f.current.setActiveCell(null));
290
+ }, i = b.current;
291
+ i && i.replicaId === r.replicaId && i.sessionId === r.sessionId || (b.current = r, L(p, o.sessionId));
292
+ }, [p, o?.sessionId, L]), E(() => {
293
+ e === null && (M(null), g.current && g.current.setActiveCell(null));
288
294
  }, [e]);
289
- const b = st(o), { data: q } = gt(
295
+ const w = dt(o), { data: K } = Ct(
290
296
  o?.sourceEntityId,
291
297
  void 0,
292
298
  {
293
299
  enabled: !!o?.sourceEntityId
294
300
  }
295
- ), Y = q?.concreteType === "org.sagebionetworks.repo.model.table.EntityView", T = P(() => yt(b ?? null), [b]), K = p ? "Connected" : "Disconnected", Q = Ot(
296
- a,
301
+ ), Q = K?.concreteType === "org.sagebionetworks.repo.model.table.EntityView", T = N(() => xt(w ?? null), [w]), X = m ? "Connected" : "Disconnected", Z = Dt(
302
+ s,
297
303
  e,
298
- x,
299
- m
300
- ), g = P(
301
- () => a ? dt(e, a) : [],
302
- [e, a]
303
- ), y = d(() => {
304
- !p || !C.current || C.current.sendPatch();
305
- }, [p, C]);
306
- R(() => {
307
- p && y();
308
- }, [p, y]);
309
- const u = d(
310
- (i, r) => {
311
- r.forEach((l) => {
312
- Tt(i, l, T);
304
+ C,
305
+ p
306
+ ), u = N(
307
+ () => s ? ht(e, s) : [],
308
+ [e, s]
309
+ ), tt = N(
310
+ () => Lt(
311
+ u,
312
+ e,
313
+ s,
314
+ z
315
+ ),
316
+ [u, e, s, z]
317
+ ), y = a(() => {
318
+ !m || !R.current || R.current.sendPatch();
319
+ }, [m, R]);
320
+ E(() => {
321
+ m && y();
322
+ }, [m, y]);
323
+ const h = a(
324
+ (r, i) => {
325
+ i.forEach((d) => {
326
+ Nt(r, d, T);
313
327
  }), y();
314
328
  },
315
329
  [y, T]
316
- ), X = d(
317
- (i) => {
330
+ ), ot = a(
331
+ (r) => {
318
332
  if (!e) {
319
333
  console.error("Model is not initialized");
320
334
  return;
321
335
  }
322
- i.type === "DELETE" && f.current && f.current.setActiveCell(null), u(e, [i]);
336
+ r.type === "DELETE" && g.current && g.current.setActiveCell(null), h(e, [r]);
323
337
  },
324
- [e, u]
325
- ), { undoUI: Z, redoUI: tt, addOperationsToUndoStack: D, clearRedoStack: L } = Gt(X), ot = d(
326
- (i, r) => {
338
+ [e, h]
339
+ ), { undoUI: rt, redoUI: it, addOperationsToUndoStack: P, clearRedoStack: A } = wt(ot), et = a(
340
+ (r, i) => {
327
341
  if (!e) {
328
342
  console.error("Model is not initialized");
329
343
  return;
330
344
  }
331
- if (r = wt(i, g, r), r.length > 0) {
332
- L(), D(r, g, i);
333
- const l = Nt(r, i);
334
- u(e, l);
345
+ if (i = kt(r, u, i), i.length > 0) {
346
+ A(), P(i, u, r);
347
+ const d = Mt(i, r);
348
+ h(e, d);
335
349
  }
336
350
  },
337
351
  [
338
352
  e,
339
- g,
340
- L,
341
- D,
342
- u
353
+ u,
354
+ A,
355
+ P,
356
+ h
343
357
  ]
344
- ), it = d(
345
- (i) => {
346
- const { selection: r } = i;
347
- if (r != null && (k(r), e != null && m != null)) {
348
- const l = lt(
349
- r,
358
+ ), nt = a(
359
+ (r) => {
360
+ const { selection: i } = r;
361
+ if (i != null && (M(i), e != null && p != null)) {
362
+ const d = ut(
363
+ i,
350
364
  e
351
365
  );
352
- u(e, [
366
+ h(e, [
353
367
  {
354
368
  type: "SET_SELECTION",
355
- replicaId: m.toString(),
356
- selection: l
369
+ replicaId: p.toString(),
370
+ selection: d
357
371
  }
358
372
  ]);
359
373
  }
360
374
  },
361
- [u, e, m]
362
- ), B = I(null), [, rt] = S({}), et = d(
363
- (i, r) => {
364
- i !== null && (B.current = i, rt({}));
375
+ [h, e, p]
376
+ ), j = S(null), [, pt] = I({}), mt = a(
377
+ (r, i) => {
378
+ r !== null && (j.current = r, pt({}));
365
379
  },
366
380
  []
367
381
  );
368
- return !_ && !V?.isCertified ? /* @__PURE__ */ t(zt, {}) : /* @__PURE__ */ t("div", { children: /* @__PURE__ */ n(s, { container: !0, spacing: 2, children: [
369
- /* @__PURE__ */ t(s, { size: { xs: 12, xl: 8 }, children: /* @__PURE__ */ t(
370
- vt,
382
+ return !$ && !G?.isCertified ? /* @__PURE__ */ t(Bt, {}) : /* @__PURE__ */ t("div", { children: /* @__PURE__ */ n(c, { container: !0, spacing: 2, children: [
383
+ /* @__PURE__ */ t(c, { size: { xs: 12, xl: 8 }, children: /* @__PURE__ */ t(
384
+ Tt,
371
385
  {
372
- ref: h,
373
- onSessionChange: F,
374
- onReplicaChange: J,
375
- show: E
386
+ ref: f,
387
+ onSessionChange: V,
388
+ onReplicaChange: W,
389
+ show: x
376
390
  }
377
391
  ) }),
378
- /* @__PURE__ */ t(s, { size: { xs: 12, xl: 4 }, children: E && /* @__PURE__ */ n("div", { children: [
392
+ /* @__PURE__ */ t(c, { size: { xs: 12, xl: 4 }, children: x && /* @__PURE__ */ n("div", { children: [
379
393
  /* @__PURE__ */ n("p", { children: [
380
394
  "Session ID: ",
381
395
  o?.sessionId || "No session created"
382
396
  ] }),
383
397
  /* @__PURE__ */ n("p", { children: [
384
398
  "Replica ID: ",
385
- m || "No replica created"
399
+ p || "No replica created"
386
400
  ] }),
387
401
  /* @__PURE__ */ n("p", { children: [
388
402
  "Source Entity ID:",
@@ -397,29 +411,29 @@ const en = at(
397
411
  /* @__PURE__ */ n("p", { children: [
398
412
  "Presigned URL:",
399
413
  " ",
400
- c ? c.substring(0, 30) + (c.length > 30 ? " ... " + c.substring(c.length - 10) : "") : "No URL generated"
414
+ l ? l.substring(0, 30) + (l.length > 30 ? " ... " + l.substring(l.length - 10) : "") : "No URL generated"
401
415
  ] }),
402
416
  /* @__PURE__ */ n("p", { children: [
403
417
  "WebSocket Status:",
404
418
  " ",
405
- /* @__PURE__ */ t("span", { style: { color: p ? "green" : "red" }, children: K })
419
+ /* @__PURE__ */ t("span", { style: { color: m ? "green" : "red" }, children: X })
406
420
  ] }),
407
421
  /* @__PURE__ */ t("p", { children: (() => {
408
- const i = x.filter(
409
- (r) => r.isConnected
422
+ const r = C.filter(
423
+ (i) => i.isConnected
410
424
  );
411
- return /* @__PURE__ */ n(w, { children: [
425
+ return /* @__PURE__ */ n(U, { children: [
412
426
  "Connected Replicas (",
413
- i.length,
427
+ r.length,
414
428
  " /",
415
429
  " ",
416
- x.length,
430
+ C.length,
417
431
  " total):",
418
432
  " ",
419
- i.length === 0 ? "none" : i.map((r, l) => /* @__PURE__ */ t(
420
- ht,
433
+ r.length === 0 ? "none" : r.map((i, d) => /* @__PURE__ */ t(
434
+ It,
421
435
  {
422
- title: /* @__PURE__ */ t("pre", { style: { margin: 0, fontSize: "11px" }, children: JSON.stringify(r, null, 2) }),
436
+ title: /* @__PURE__ */ t("pre", { style: { margin: 0, fontSize: "11px" }, children: JSON.stringify(i, null, 2) }),
423
437
  children: /* @__PURE__ */ n(
424
438
  "span",
425
439
  {
@@ -428,75 +442,75 @@ const en = at(
428
442
  textDecoration: "underline dotted"
429
443
  },
430
444
  children: [
431
- r.replicaId,
432
- l < i.length - 1 ? ", " : ""
445
+ i.replicaId,
446
+ d < r.length - 1 ? ", " : ""
433
447
  ]
434
448
  }
435
449
  )
436
450
  },
437
- r.replicaId
451
+ i.replicaId
438
452
  ))
439
453
  ] });
440
454
  })() })
441
455
  ] }) }),
442
- o && /* @__PURE__ */ n(w, { children: [
443
- !U && /* @__PURE__ */ n(s, { size: 12, children: [
456
+ o && /* @__PURE__ */ n(U, { children: [
457
+ !B && /* @__PURE__ */ n(c, { size: 12, children: [
444
458
  /* @__PURE__ */ t("h3", { children: "Setting up grid..." }),
445
459
  /* @__PURE__ */ n("div", { style: { marginBottom: "10px" }, children: [
446
460
  !o && /* @__PURE__ */ t("p", { children: "Creating grid session..." }),
447
- o && !m && /* @__PURE__ */ t("p", { children: "Setting up real-time sync..." }),
448
- o && m && !c && /* @__PURE__ */ t("p", { children: "Establishing secure connection..." }),
449
- o && m && c && !p && /* @__PURE__ */ t("p", { children: "Connecting to server..." }),
450
- p && !$ && /* @__PURE__ */ t("p", { children: "Loading table data..." }),
451
- /* @__PURE__ */ t(Ct, { numRows: 4, numCols: 1 })
461
+ o && !p && /* @__PURE__ */ t("p", { children: "Setting up real-time sync..." }),
462
+ o && p && !l && /* @__PURE__ */ t("p", { children: "Establishing secure connection..." }),
463
+ o && p && l && !m && /* @__PURE__ */ t("p", { children: "Connecting to server..." }),
464
+ m && !Y && /* @__PURE__ */ t("p", { children: "Loading table data..." }),
465
+ /* @__PURE__ */ t(Et, { numRows: 4, numCols: 1 })
452
466
  ] })
453
467
  ] }),
454
- U && /* @__PURE__ */ n(w, { children: [
455
- /* @__PURE__ */ t(s, { size: 12, children: /* @__PURE__ */ n(
456
- ft,
468
+ B && /* @__PURE__ */ n(U, { children: [
469
+ /* @__PURE__ */ t(c, { size: 12, children: /* @__PURE__ */ n(
470
+ St,
457
471
  {
458
472
  direction: "row",
459
473
  spacing: 1,
460
474
  sx: { justifyContent: "flex-end" },
461
475
  children: [
462
- Z,
463
- tt,
476
+ rt,
477
+ it,
464
478
  /* @__PURE__ */ t(
465
- nt,
479
+ st,
466
480
  {
467
481
  variant: "outlined",
468
- onClick: () => N(!0),
469
- startIcon: /* @__PURE__ */ t(It, {}),
482
+ onClick: () => k(!0),
483
+ startIcon: /* @__PURE__ */ t(yt, {}),
470
484
  children: "Open chat"
471
485
  }
472
486
  ),
473
487
  /* @__PURE__ */ t(
474
- Et,
488
+ vt,
475
489
  {
476
- agentRegistrationId: A,
477
- open: W,
478
- onClose: () => N(!1),
490
+ agentRegistrationId: F,
491
+ open: H,
492
+ onClose: () => k(!1),
479
493
  gridSessionId: o.sessionId,
480
- usersReplicaId: m,
494
+ usersReplicaId: p,
481
495
  chatbotName: "Grid Assistant"
482
496
  }
483
497
  ),
484
498
  o.sourceEntityId && /* @__PURE__ */ t(
485
- mt,
499
+ ct,
486
500
  {
487
501
  sourceEntityId: o.sourceEntityId,
488
502
  gridSessionId: o.sessionId
489
503
  }
490
504
  ),
491
505
  o.sessionId && /* @__PURE__ */ t(
492
- pt,
506
+ lt,
493
507
  {
494
508
  gridSessionId: o.sessionId,
495
509
  filename: "grid-" + (o.sourceEntityId || "export")
496
510
  }
497
511
  ),
498
512
  o.sourceEntityId && /* @__PURE__ */ t(
499
- ct,
513
+ at,
500
514
  {
501
515
  sourceEntityId: o.sourceEntityId,
502
516
  gridSessionId: o.sessionId
@@ -505,33 +519,33 @@ const en = at(
505
519
  ]
506
520
  }
507
521
  ) }),
508
- /* @__PURE__ */ t(s, { size: 12, children: /* @__PURE__ */ t(
509
- xt,
522
+ /* @__PURE__ */ t(c, { size: 12, children: /* @__PURE__ */ t(
523
+ bt,
510
524
  {
511
- gridRef: f,
512
- rowValues: g,
513
- columnNames: a?.columnNames ?? [],
514
- columnOrder: a?.columnOrder ?? [],
525
+ gridRef: g,
526
+ rowValues: tt,
527
+ columnNames: s?.columnNames ?? [],
528
+ columnOrder: s?.columnOrder ?? [],
515
529
  schemaPropertiesInfo: T,
516
- entityIsView: Y,
517
- jsonSchema: b,
518
- lastSelection: H,
519
- handleChange: ot,
520
- handleSelectionChange: it,
521
- onSelectedRowChange: et,
522
- remoteSelections: Q
530
+ entityIsView: Q,
531
+ jsonSchema: w,
532
+ lastSelection: _,
533
+ handleChange: et,
534
+ handleSelectionChange: nt,
535
+ onSelectedRowChange: mt,
536
+ remoteSelections: Z
523
537
  }
524
538
  ) }),
525
- /* @__PURE__ */ t(s, { size: 12, children: /* @__PURE__ */ t(
526
- Mt,
539
+ /* @__PURE__ */ t(c, { size: 12, children: /* @__PURE__ */ t(
540
+ Pt,
527
541
  {
528
- selectedRowIndex: B.current,
529
- rowValues: g
542
+ selectedRowIndex: j.current,
543
+ rowValues: u
530
544
  }
531
545
  ) })
532
546
  ] }),
533
- E && /* @__PURE__ */ n(
534
- s,
547
+ x && /* @__PURE__ */ n(
548
+ c,
535
549
  {
536
550
  size: 12,
537
551
  style: {
@@ -543,7 +557,7 @@ const en = at(
543
557
  },
544
558
  children: [
545
559
  /* @__PURE__ */ t("h3", { children: "Model" }),
546
- e ? /* @__PURE__ */ t(Rt, { model: e }) : "No model available"
560
+ e ? /* @__PURE__ */ t(Gt, { model: e }) : "No model available"
547
561
  ]
548
562
  }
549
563
  )
@@ -552,6 +566,6 @@ const en = at(
552
566
  }
553
567
  );
554
568
  export {
555
- en as default
569
+ dn as default
556
570
  };
557
571
  //# sourceMappingURL=SynapseGrid.js.map