@uniformdev/mesh-sdk-react 19.27.1-alpha.3 → 19.29.1-alpha.19

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/index.esm.js CHANGED
@@ -43,6 +43,7 @@ var init_emotion_jsx_shim = __esm({
43
43
  // ../../node_modules/.pnpm/yocto-queue@0.1.0/node_modules/yocto-queue/index.js
44
44
  var require_yocto_queue = __commonJS({
45
45
  "../../node_modules/.pnpm/yocto-queue@0.1.0/node_modules/yocto-queue/index.js"(exports, module) {
46
+ "use strict";
46
47
  init_emotion_jsx_shim();
47
48
  var Node = class {
48
49
  /// value;
@@ -3415,7 +3416,7 @@ import { Chip } from "@uniformdev/design-system";
3415
3416
  import { DecoratorNode } from "lexical";
3416
3417
  import { Fragment as Fragment4 } from "react";
3417
3418
  import { jsx as jsx30 } from "@emotion/react/jsx-runtime";
3418
- var VariableNode = class extends DecoratorNode {
3419
+ var VariableNode = class _VariableNode extends DecoratorNode {
3419
3420
  constructor(reference, state, key) {
3420
3421
  super(key);
3421
3422
  this.reference = reference;
@@ -3425,7 +3426,7 @@ var VariableNode = class extends DecoratorNode {
3425
3426
  return "variable";
3426
3427
  }
3427
3428
  static clone(node) {
3428
- return new VariableNode(node.reference, { ...node.__state }, node.__key);
3429
+ return new _VariableNode(node.reference, { ...node.__state }, node.__key);
3429
3430
  }
3430
3431
  /** Imports the node from serialized JSON (i.e. the data provided to the editor's initial state) */
3431
3432
  static importJSON(serializedNode) {
@@ -3448,7 +3449,7 @@ var VariableNode = class extends DecoratorNode {
3448
3449
  exportJSON() {
3449
3450
  return {
3450
3451
  reference: this.reference,
3451
- type: VariableNode.getType(),
3452
+ type: _VariableNode.getType(),
3452
3453
  version: 1
3453
3454
  };
3454
3455
  }
@@ -5186,6 +5187,7 @@ var DataRefreshButton = ({
5186
5187
 
5187
5188
  // src/components/ObjectSearch/ObjectSearchContainer.tsx
5188
5189
  init_emotion_jsx_shim();
5190
+ import { css as css29 } from "@emotion/react";
5189
5191
 
5190
5192
  // ../canvas/dist/index.mjs
5191
5193
  init_emotion_jsx_shim();
@@ -5213,7 +5215,7 @@ var __privateAdd = (obj, member, value) => {
5213
5215
  member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
5214
5216
  };
5215
5217
  var defaultLimitPolicy = (0, import_p_limit.default)(6);
5216
- var ApiClientError = class extends Error {
5218
+ var ApiClientError = class _ApiClientError extends Error {
5217
5219
  constructor(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId) {
5218
5220
  super(
5219
5221
  `${errorMessage}
@@ -5225,10 +5227,10 @@ var ApiClientError = class extends Error {
5225
5227
  this.statusCode = statusCode;
5226
5228
  this.statusText = statusText;
5227
5229
  this.requestId = requestId;
5228
- Object.setPrototypeOf(this, ApiClientError.prototype);
5230
+ Object.setPrototypeOf(this, _ApiClientError.prototype);
5229
5231
  }
5230
5232
  };
5231
- var ApiClient = class {
5233
+ var ApiClient = class _ApiClient {
5232
5234
  constructor(options) {
5233
5235
  __publicField(this, "options");
5234
5236
  var _a, _b, _c, _d, _e;
@@ -5298,7 +5300,7 @@ var ApiClient = class {
5298
5300
  fetchUri.toString(),
5299
5301
  apiResponse.status,
5300
5302
  apiResponse.statusText,
5301
- ApiClient.getRequestId(apiResponse)
5303
+ _ApiClient.getRequestId(apiResponse)
5302
5304
  );
5303
5305
  }
5304
5306
  if (options == null ? void 0 : options.expectNoContent) {
@@ -5371,19 +5373,19 @@ async function handleRateLimits(callApi) {
5371
5373
  return response;
5372
5374
  }
5373
5375
  var _url;
5374
- var _AggregateClient = class extends ApiClient {
5376
+ var _AggregateClient = class _AggregateClient2 extends ApiClient {
5375
5377
  constructor(options) {
5376
5378
  super(options);
5377
5379
  }
5378
5380
  /** Fetches all aggregates for a project */
5379
5381
  async get(options) {
5380
5382
  const { projectId } = this.options;
5381
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url), { ...options, projectId });
5383
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url), { ...options, projectId });
5382
5384
  return await this.apiClient(fetchUri);
5383
5385
  }
5384
5386
  /** Updates or creates (based on id) an Aggregate */
5385
5387
  async upsert(body) {
5386
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url));
5388
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url));
5387
5389
  await this.apiClient(fetchUri, {
5388
5390
  method: "PUT",
5389
5391
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5392,7 +5394,7 @@ var _AggregateClient = class extends ApiClient {
5392
5394
  }
5393
5395
  /** Deletes an Aggregate */
5394
5396
  async remove(body) {
5395
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url));
5397
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url));
5396
5398
  await this.apiClient(fetchUri, {
5397
5399
  method: "DELETE",
5398
5400
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5400,39 +5402,37 @@ var _AggregateClient = class extends ApiClient {
5400
5402
  });
5401
5403
  }
5402
5404
  };
5403
- var AggregateClient = _AggregateClient;
5404
5405
  _url = /* @__PURE__ */ new WeakMap();
5405
- __privateAdd(AggregateClient, _url, "/api/v2/aggregate");
5406
+ __privateAdd(_AggregateClient, _url, "/api/v2/aggregate");
5406
5407
  var _url2;
5407
- var _DimensionClient = class extends ApiClient {
5408
+ var _DimensionClient = class _DimensionClient2 extends ApiClient {
5408
5409
  constructor(options) {
5409
5410
  super(options);
5410
5411
  }
5411
5412
  /** Fetches the known score dimensions for a project */
5412
5413
  async get(options) {
5413
5414
  const { projectId } = this.options;
5414
- const fetchUri = this.createUrl(__privateGet(_DimensionClient, _url2), { ...options, projectId });
5415
+ const fetchUri = this.createUrl(__privateGet(_DimensionClient2, _url2), { ...options, projectId });
5415
5416
  return await this.apiClient(fetchUri);
5416
5417
  }
5417
5418
  };
5418
- var DimensionClient = _DimensionClient;
5419
5419
  _url2 = /* @__PURE__ */ new WeakMap();
5420
- __privateAdd(DimensionClient, _url2, "/api/v2/dimension");
5420
+ __privateAdd(_DimensionClient, _url2, "/api/v2/dimension");
5421
5421
  var _url3;
5422
5422
  var _valueUrl;
5423
- var _EnrichmentClient = class extends ApiClient {
5423
+ var _EnrichmentClient = class _EnrichmentClient2 extends ApiClient {
5424
5424
  constructor(options) {
5425
5425
  super(options);
5426
5426
  }
5427
5427
  /** Fetches all enrichments and values for a project, grouped by category */
5428
5428
  async get(options) {
5429
5429
  const { projectId } = this.options;
5430
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3), { ...options, projectId });
5430
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3), { ...options, projectId });
5431
5431
  return await this.apiClient(fetchUri);
5432
5432
  }
5433
5433
  /** Updates or creates (based on id) an enrichment category */
5434
5434
  async upsertCategory(body) {
5435
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3));
5435
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3));
5436
5436
  await this.apiClient(fetchUri, {
5437
5437
  method: "PUT",
5438
5438
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5441,7 +5441,7 @@ var _EnrichmentClient = class extends ApiClient {
5441
5441
  }
5442
5442
  /** Deletes an enrichment category */
5443
5443
  async removeCategory(body) {
5444
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3));
5444
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3));
5445
5445
  await this.apiClient(fetchUri, {
5446
5446
  method: "DELETE",
5447
5447
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5450,7 +5450,7 @@ var _EnrichmentClient = class extends ApiClient {
5450
5450
  }
5451
5451
  /** Updates or creates (based on id) an enrichment value within an enrichment category */
5452
5452
  async upsertValue(body) {
5453
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _valueUrl));
5453
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _valueUrl));
5454
5454
  await this.apiClient(fetchUri, {
5455
5455
  method: "PUT",
5456
5456
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5459,7 +5459,7 @@ var _EnrichmentClient = class extends ApiClient {
5459
5459
  }
5460
5460
  /** Deletes an enrichment value within an enrichment category. The category is left alone. */
5461
5461
  async removeValue(body) {
5462
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _valueUrl));
5462
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _valueUrl));
5463
5463
  await this.apiClient(fetchUri, {
5464
5464
  method: "DELETE",
5465
5465
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5467,20 +5467,19 @@ var _EnrichmentClient = class extends ApiClient {
5467
5467
  });
5468
5468
  }
5469
5469
  };
5470
- var EnrichmentClient = _EnrichmentClient;
5471
5470
  _url3 = /* @__PURE__ */ new WeakMap();
5472
5471
  _valueUrl = /* @__PURE__ */ new WeakMap();
5473
- __privateAdd(EnrichmentClient, _url3, "/api/v1/enrichments");
5474
- __privateAdd(EnrichmentClient, _valueUrl, "/api/v1/enrichment-values");
5472
+ __privateAdd(_EnrichmentClient, _url3, "/api/v1/enrichments");
5473
+ __privateAdd(_EnrichmentClient, _valueUrl, "/api/v1/enrichment-values");
5475
5474
  var _url4;
5476
- var _ManifestClient = class extends ApiClient {
5475
+ var _ManifestClient = class _ManifestClient2 extends ApiClient {
5477
5476
  constructor(options) {
5478
5477
  super(options);
5479
5478
  }
5480
5479
  /** Fetches the Context manifest for a project */
5481
5480
  async get(options) {
5482
5481
  const { projectId } = this.options;
5483
- const fetchUri = this.createUrl(__privateGet(_ManifestClient, _url4), { ...options, projectId });
5482
+ const fetchUri = this.createUrl(__privateGet(_ManifestClient2, _url4), { ...options, projectId });
5484
5483
  return await this.apiClient(fetchUri);
5485
5484
  }
5486
5485
  /** Publishes the Context manifest for a project */
@@ -5493,23 +5492,22 @@ var _ManifestClient = class extends ApiClient {
5493
5492
  });
5494
5493
  }
5495
5494
  };
5496
- var ManifestClient = _ManifestClient;
5497
5495
  _url4 = /* @__PURE__ */ new WeakMap();
5498
- __privateAdd(ManifestClient, _url4, "/api/v2/manifest");
5496
+ __privateAdd(_ManifestClient, _url4, "/api/v2/manifest");
5499
5497
  var _url5;
5500
- var _QuirkClient = class extends ApiClient {
5498
+ var _QuirkClient = class _QuirkClient2 extends ApiClient {
5501
5499
  constructor(options) {
5502
5500
  super(options);
5503
5501
  }
5504
5502
  /** Fetches all Quirks for a project */
5505
5503
  async get(options) {
5506
5504
  const { projectId } = this.options;
5507
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5), { ...options, projectId });
5505
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5), { ...options, projectId });
5508
5506
  return await this.apiClient(fetchUri);
5509
5507
  }
5510
5508
  /** Updates or creates (based on id) a Quirk */
5511
5509
  async upsert(body) {
5512
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5));
5510
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5));
5513
5511
  await this.apiClient(fetchUri, {
5514
5512
  method: "PUT",
5515
5513
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5518,7 +5516,7 @@ var _QuirkClient = class extends ApiClient {
5518
5516
  }
5519
5517
  /** Deletes a Quirk */
5520
5518
  async remove(body) {
5521
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5));
5519
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5));
5522
5520
  await this.apiClient(fetchUri, {
5523
5521
  method: "DELETE",
5524
5522
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5526,23 +5524,22 @@ var _QuirkClient = class extends ApiClient {
5526
5524
  });
5527
5525
  }
5528
5526
  };
5529
- var QuirkClient = _QuirkClient;
5530
5527
  _url5 = /* @__PURE__ */ new WeakMap();
5531
- __privateAdd(QuirkClient, _url5, "/api/v2/quirk");
5528
+ __privateAdd(_QuirkClient, _url5, "/api/v2/quirk");
5532
5529
  var _url6;
5533
- var _SignalClient = class extends ApiClient {
5530
+ var _SignalClient = class _SignalClient2 extends ApiClient {
5534
5531
  constructor(options) {
5535
5532
  super(options);
5536
5533
  }
5537
5534
  /** Fetches all Signals for a project */
5538
5535
  async get(options) {
5539
5536
  const { projectId } = this.options;
5540
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6), { ...options, projectId });
5537
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6), { ...options, projectId });
5541
5538
  return await this.apiClient(fetchUri);
5542
5539
  }
5543
5540
  /** Updates or creates (based on id) a Signal */
5544
5541
  async upsert(body) {
5545
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6));
5542
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6));
5546
5543
  await this.apiClient(fetchUri, {
5547
5544
  method: "PUT",
5548
5545
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5551,7 +5548,7 @@ var _SignalClient = class extends ApiClient {
5551
5548
  }
5552
5549
  /** Deletes a Signal */
5553
5550
  async remove(body) {
5554
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6));
5551
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6));
5555
5552
  await this.apiClient(fetchUri, {
5556
5553
  method: "DELETE",
5557
5554
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5559,23 +5556,22 @@ var _SignalClient = class extends ApiClient {
5559
5556
  });
5560
5557
  }
5561
5558
  };
5562
- var SignalClient = _SignalClient;
5563
5559
  _url6 = /* @__PURE__ */ new WeakMap();
5564
- __privateAdd(SignalClient, _url6, "/api/v2/signal");
5560
+ __privateAdd(_SignalClient, _url6, "/api/v2/signal");
5565
5561
  var _url7;
5566
- var _TestClient = class extends ApiClient {
5562
+ var _TestClient = class _TestClient2 extends ApiClient {
5567
5563
  constructor(options) {
5568
5564
  super(options);
5569
5565
  }
5570
5566
  /** Fetches all Tests for a project */
5571
5567
  async get(options) {
5572
5568
  const { projectId } = this.options;
5573
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7), { ...options, projectId });
5569
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7), { ...options, projectId });
5574
5570
  return await this.apiClient(fetchUri);
5575
5571
  }
5576
5572
  /** Updates or creates (based on id) a Test */
5577
5573
  async upsert(body) {
5578
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7));
5574
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7));
5579
5575
  await this.apiClient(fetchUri, {
5580
5576
  method: "PUT",
5581
5577
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5584,7 +5580,7 @@ var _TestClient = class extends ApiClient {
5584
5580
  }
5585
5581
  /** Deletes a Test */
5586
5582
  async remove(body) {
5587
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7));
5583
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7));
5588
5584
  await this.apiClient(fetchUri, {
5589
5585
  method: "DELETE",
5590
5586
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5592,9 +5588,8 @@ var _TestClient = class extends ApiClient {
5592
5588
  });
5593
5589
  }
5594
5590
  };
5595
- var TestClient = _TestClient;
5596
5591
  _url7 = /* @__PURE__ */ new WeakMap();
5597
- __privateAdd(TestClient, _url7, "/api/v2/test");
5592
+ __privateAdd(_TestClient, _url7, "/api/v2/test");
5598
5593
 
5599
5594
  // ../../node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.esm.mjs
5600
5595
  init_emotion_jsx_shim();
@@ -6021,6 +6016,7 @@ var __privateAdd2 = (obj, member, value) => {
6021
6016
  };
6022
6017
  var require_retry_operation = __commonJS2({
6023
6018
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js"(exports, module) {
6019
+ "use strict";
6024
6020
  function RetryOperation(timeouts, options) {
6025
6021
  if (typeof options === "boolean") {
6026
6022
  options = { forever: options };
@@ -6154,6 +6150,7 @@ var require_retry_operation = __commonJS2({
6154
6150
  });
6155
6151
  var require_retry = __commonJS2({
6156
6152
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry.js"(exports) {
6153
+ "use strict";
6157
6154
  var RetryOperation = require_retry_operation();
6158
6155
  exports.operation = function(options) {
6159
6156
  var timeouts = exports.timeouts(options);
@@ -6238,24 +6235,25 @@ var require_retry = __commonJS2({
6238
6235
  });
6239
6236
  var require_retry2 = __commonJS2({
6240
6237
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/index.js"(exports, module) {
6238
+ "use strict";
6241
6239
  module.exports = require_retry();
6242
6240
  }
6243
6241
  });
6244
6242
  var import_retry = __toESM2(require_retry2(), 1);
6245
6243
  var _url8;
6246
- var _DataTypeClient = class extends ApiClient {
6244
+ var _DataTypeClient = class _DataTypeClient2 extends ApiClient {
6247
6245
  constructor(options) {
6248
6246
  super(options);
6249
6247
  }
6250
6248
  /** Fetches all DataTypes for a project */
6251
6249
  async get(options) {
6252
6250
  const { projectId } = this.options;
6253
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8), { ...options, projectId });
6251
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8), { ...options, projectId });
6254
6252
  return await this.apiClient(fetchUri);
6255
6253
  }
6256
6254
  /** Updates or creates (based on id) a DataType */
6257
6255
  async upsert(body) {
6258
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8));
6256
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8));
6259
6257
  await this.apiClient(fetchUri, {
6260
6258
  method: "PUT",
6261
6259
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -6264,7 +6262,7 @@ var _DataTypeClient = class extends ApiClient {
6264
6262
  }
6265
6263
  /** Deletes a DataType */
6266
6264
  async remove(body) {
6267
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8));
6265
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8));
6268
6266
  await this.apiClient(fetchUri, {
6269
6267
  method: "DELETE",
6270
6268
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -6272,9 +6270,8 @@ var _DataTypeClient = class extends ApiClient {
6272
6270
  });
6273
6271
  }
6274
6272
  };
6275
- var DataTypeClient = _DataTypeClient;
6276
6273
  _url8 = /* @__PURE__ */ new WeakMap();
6277
- __privateAdd2(DataTypeClient, _url8, "/api/v1/data-types");
6274
+ __privateAdd2(_DataTypeClient, _url8, "/api/v1/data-types");
6278
6275
  var EDGE_MAX_L2_CACHE_TTL_IN_HOURS = 4 * 7 * 24;
6279
6276
  function bindVariables({
6280
6277
  variables,
@@ -6472,7 +6469,19 @@ var ObjectSearchContainer = ({
6472
6469
  const { flatVariables } = useVariables(true);
6473
6470
  const body = /* @__PURE__ */ jsxs30(VerticalRhythm, { children: [
6474
6471
  searchFilters,
6475
- !resultList ? null : /* @__PURE__ */ jsx53(ScrollableList, { role: "list", children: resultList })
6472
+ !resultList ? null : /* @__PURE__ */ jsx53(
6473
+ ScrollableList,
6474
+ {
6475
+ role: "list",
6476
+ css: css29`
6477
+ > div {
6478
+ transition: max-height var(--duration-slow) var(--timing-ease-out);
6479
+ max-height: ${selectedListItems.length === 0 ? "50vh" : "184px"};
6480
+ }
6481
+ `,
6482
+ children: resultList
6483
+ }
6484
+ )
6476
6485
  ] });
6477
6486
  const handleSelectedVariableChange = (selectedValue) => {
6478
6487
  var _a2;
@@ -6523,8 +6532,8 @@ import { useState as useState15 } from "react";
6523
6532
 
6524
6533
  // src/components/ObjectSearch/styles/ObjectSearchFilterContainer.styles.ts
6525
6534
  init_emotion_jsx_shim();
6526
- import { css as css29 } from "@emotion/react";
6527
- var ObjectSearchFilterContainerLabel = css29`
6535
+ import { css as css30 } from "@emotion/react";
6536
+ var ObjectSearchFilterContainerLabel = css30`
6528
6537
  align-items: center;
6529
6538
  display: flex;
6530
6539
  font-size: var(--fs-sm);
@@ -6532,14 +6541,14 @@ var ObjectSearchFilterContainerLabel = css29`
6532
6541
  line-height: 1rem;
6533
6542
  margin-bottom: var(--spacing-sm);
6534
6543
  `;
6535
- var ObjectSearchFilterContainer = css29`
6544
+ var ObjectSearchFilterContainer = css30`
6536
6545
  display: grid;
6537
6546
  gap: var(--spacing-base);
6538
6547
  `;
6539
- var ObjectSearchFilterDropdownAndTextSearch = css29`
6548
+ var ObjectSearchFilterDropdownAndTextSearch = css30`
6540
6549
  grid-template-columns: 0.5fr 1fr;
6541
6550
  `;
6542
- var ObjectSearchFilterGrid = (gridColumns) => css29`
6551
+ var ObjectSearchFilterGrid = (gridColumns) => css30`
6543
6552
  display: grid;
6544
6553
  grid-template-columns: ${gridColumns};
6545
6554
  gap: var(--spacing-base);
@@ -6609,26 +6618,22 @@ var ObjectSearchFilterContainer2 = ({ label, children }) => {
6609
6618
 
6610
6619
  // src/components/ObjectSearch/ObjectSearchListItem.tsx
6611
6620
  init_emotion_jsx_shim();
6612
- import { Popover } from "@uniformdev/design-system";
6621
+ import { Chip as Chip2, Popover } from "@uniformdev/design-system";
6613
6622
 
6614
6623
  // src/components/ObjectSearch/styles/ObjectSearchListItem.styles.ts
6615
6624
  init_emotion_jsx_shim();
6616
- import { css as css30 } from "@emotion/react";
6625
+ import { css as css31 } from "@emotion/react";
6617
6626
  import { skeletonLoading } from "@uniformdev/design-system";
6618
- var ObjectListItemContainer = css30`
6627
+ var ObjectListItemContainer = css31`
6619
6628
  align-items: center;
6620
6629
  border: 1px solid var(--gray-300);
6621
6630
  border-radius: var(--rounded-base);
6622
6631
  background: var(--white);
6623
6632
  display: grid;
6624
- grid-template-columns: 1fr 32px;
6633
+ grid-template-columns: 1fr auto;
6625
6634
  padding: var(--spacing-sm);
6626
-
6627
- &[hidden] {
6628
- display: none;
6629
- }
6630
6635
  `;
6631
- var ObjectListItemLoading = css30`
6636
+ var ObjectListItemLoading = css31`
6632
6637
  animation: ${skeletonLoading} 1s linear infinite alternate;
6633
6638
  border-color: transparent;
6634
6639
  min-height: 42px;
@@ -6652,31 +6657,32 @@ var ObjectListItemLoading = css30`
6652
6657
  width: 1rem;
6653
6658
  }
6654
6659
  `;
6655
- var ObjectListItemHeadingGroup = css30`
6660
+ var ObjectListItemHeadingGroup = css31`
6656
6661
  align-items: center;
6657
6662
  display: grid;
6658
6663
  `;
6659
- var ObjectListItemTitle = css30`
6664
+ var ObjectListItemTitle = css31`
6660
6665
  color: var(--brand-secondary-1);
6661
6666
  display: block;
6662
6667
  font-size: var(--fs-sm);
6663
6668
  `;
6664
- var ObjectListItemSubtitle = css30`
6669
+ var ObjectListItemSubtitle = css31`
6665
6670
  color: var(--gray-500);
6666
6671
  display: block;
6667
6672
  font-size: var(--fs-xs);
6668
6673
  line-height: 1;
6669
6674
  `;
6670
- var ObjectListItemInfoContainer = css30`
6675
+ var ObjectListItemInfoContainer = css31`
6671
6676
  align-items: center;
6672
6677
  display: flex;
6678
+ gap: var(--spacing-sm);
6673
6679
  justify-content: center;
6674
6680
  `;
6675
- var ObjectListItemControlledContent = css30`
6681
+ var ObjectListItemControlledContent = css31`
6676
6682
  display: flex;
6677
6683
  gap: var(--spacing-sm);
6678
6684
  `;
6679
- var ObjectListItemUnControlledContent = css30`
6685
+ var ObjectListItemUnControlledContent = css31`
6680
6686
  margin-top: var(--spacing-sm);
6681
6687
  grid-column: 1 / -1;
6682
6688
  `;
@@ -6704,8 +6710,8 @@ var ObjectSearchListItem = ({
6704
6710
  }
6705
6711
  return onSelectItem([selectedItem]);
6706
6712
  };
6707
- const hideWhenInSelectedList = selectedListItems.some((item) => item.id === id);
6708
- return /* @__PURE__ */ jsxs33("div", { role: "listitem", hidden: hideWhenInSelectedList, css: ObjectListItemContainer, children: [
6713
+ const selected = selectedListItems.some((item) => item.id === id);
6714
+ return /* @__PURE__ */ jsxs33("div", { role: "listitem", css: ObjectListItemContainer, children: [
6709
6715
  /* @__PURE__ */ jsxs33("div", { role: "button", onClick: handleSelectItem, css: ObjectListItemControlledContent, children: [
6710
6716
  !image ? null : /* @__PURE__ */ jsx56("img", { ...image, loading: (image == null ? void 0 : image.width) && image.height ? "lazy" : "eager" }),
6711
6717
  /* @__PURE__ */ jsxs33("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
@@ -6713,7 +6719,10 @@ var ObjectSearchListItem = ({
6713
6719
  /* @__PURE__ */ jsx56("span", { css: ObjectListItemTitle, children: title })
6714
6720
  ] })
6715
6721
  ] }),
6716
- !popoverData ? null : /* @__PURE__ */ jsx56("div", { css: ObjectListItemInfoContainer, children: /* @__PURE__ */ jsx56(Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, children: popoverData }) }),
6722
+ !popoverData ? null : /* @__PURE__ */ jsxs33("div", { css: ObjectListItemInfoContainer, children: [
6723
+ selected ? /* @__PURE__ */ jsx56(Chip2, { text: "selected", size: "xs" }) : null,
6724
+ /* @__PURE__ */ jsx56(Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, iconColor: "default", children: popoverData })
6725
+ ] }),
6717
6726
  !children ? null : /* @__PURE__ */ jsx56("div", { css: ObjectListItemUnControlledContent, children })
6718
6727
  ] });
6719
6728
  };
@@ -6731,9 +6740,9 @@ init_emotion_jsx_shim();
6731
6740
 
6732
6741
  // src/components/ObjectSearch/styles/ObjectSearchResultItemButton.styles.ts
6733
6742
  init_emotion_jsx_shim();
6734
- import { css as css31 } from "@emotion/react";
6743
+ import { css as css32 } from "@emotion/react";
6735
6744
  import { button as button2 } from "@uniformdev/design-system";
6736
- var ButtonStyles = css31`
6745
+ var ButtonStyles = css32`
6737
6746
  ${button2}
6738
6747
  background: transparent;
6739
6748
  border: 1px solid var(--brand-secondary-1);
@@ -6760,7 +6769,7 @@ var ButtonStyles = css31`
6760
6769
  text-decoration: none;
6761
6770
  }
6762
6771
  `;
6763
- var ButtonIcon = css31`
6772
+ var ButtonIcon = css32`
6764
6773
  width: 1rem;
6765
6774
  height: 1rem;
6766
6775
  `;
@@ -6790,8 +6799,8 @@ var LinkButton = ({
6790
6799
 
6791
6800
  // src/components/ObjectSearch/styles/ObjectSearchResultItem.styles.ts
6792
6801
  init_emotion_jsx_shim();
6793
- import { css as css32 } from "@emotion/react";
6794
- var ObjectSearchResultItemContainer = css32`
6802
+ import { css as css33 } from "@emotion/react";
6803
+ var ObjectSearchResultItemContainer = css33`
6795
6804
  align-items: center;
6796
6805
  border: 1px solid var(--gray-300);
6797
6806
  border-radius: var(--rounded-base);
@@ -6807,7 +6816,7 @@ var ObjectSearchResultItemContainer = css32`
6807
6816
  }
6808
6817
  }
6809
6818
  `;
6810
- var ObjectSearchDragHandle = css32`
6819
+ var ObjectSearchDragHandle = css33`
6811
6820
  border-left: 2px dotted var(--gray-300);
6812
6821
  border-right: 2px dotted var(--gray-300);
6813
6822
  position: absolute;
@@ -6816,35 +6825,35 @@ var ObjectSearchDragHandle = css32`
6816
6825
  transition: opacity var(--duration-fast) var(--timing-ease-out);
6817
6826
  opacity: 0;
6818
6827
  `;
6819
- var ObjectSearchResultItemSubtitle = css32`
6828
+ var ObjectSearchResultItemSubtitle = css33`
6820
6829
  color: var(--gray-500);
6821
6830
  display: block;
6822
6831
  font-size: var(--fs-xs);
6823
6832
  line-height: 1;
6824
6833
  `;
6825
- var ObjectSearchResultItemTitle = css32`
6834
+ var ObjectSearchResultItemTitle = css33`
6826
6835
  align-items: center;
6827
6836
  color: var(--brand-secondary-1);
6828
6837
  display: flex;
6829
6838
  gap: var(--spacing-xs);
6830
6839
  `;
6831
- var ObjectSearchResultItemTimeStamp = css32`
6840
+ var ObjectSearchResultItemTimeStamp = css33`
6832
6841
  color: var(--gray-500);
6833
6842
  font-size: var(--fs-xs);
6834
6843
  `;
6835
- var ObjectSearchAuthorStateGroup = css32`
6844
+ var ObjectSearchAuthorStateGroup = css33`
6836
6845
  align-items: center;
6837
6846
  display: flex;
6838
6847
  gap: var(--spacing-sm);
6839
6848
  `;
6840
- var ObjectSearchUpdateGroup = css32`
6849
+ var ObjectSearchUpdateGroup = css33`
6841
6850
  display: grid;
6842
6851
  `;
6843
- var ObjectSearchContentContainer = css32`
6852
+ var ObjectSearchContentContainer = css33`
6844
6853
  display: flex;
6845
6854
  gap: var(--spacing-base);
6846
6855
  `;
6847
- var ObjectSearchImage = css32`
6856
+ var ObjectSearchImage = css33`
6848
6857
  width: 56px;
6849
6858
  object-fit: contain;
6850
6859
  `;
@@ -6914,22 +6923,26 @@ import { DragDropContext as DragDropContext3, Draggable as Draggable3, Droppable
6914
6923
 
6915
6924
  // src/components/ObjectSearch/styles/ObjectSearchResultList.styles.ts
6916
6925
  init_emotion_jsx_shim();
6917
- import { css as css33 } from "@emotion/react";
6918
- var ObjectSearchResultListContainer = css33`
6926
+ import { css as css34 } from "@emotion/react";
6927
+ var ObjectSearchResultListContainer = css34`
6919
6928
  align-items: center;
6920
6929
  display: flex;
6921
6930
  gap: var(--spacing-sm);
6922
6931
  justify-content: space-between;
6923
6932
  `;
6924
- var ObjectSearchDragContainer = css33`
6933
+ var ObjectSearchDragContainer = css34`
6925
6934
  margin: 0 0 var(--spacing-sm);
6926
6935
  `;
6927
- var ObjectSearchResultListCounterContainer = css33`
6936
+ var ObjectSearchContainerDragging = css34`
6937
+ box-shadow: var(--shadow-base);
6938
+ opacity: var(--opacity-50);
6939
+ `;
6940
+ var ObjectSearchResultListCounterContainer = css34`
6928
6941
  align-items: center;
6929
6942
  display: flex;
6930
6943
  gap: var(--spacing-sm);
6931
6944
  `;
6932
- var ObjectSearchResultListTitle = css33`
6945
+ var ObjectSearchResultListTitle = css34`
6933
6946
  font-weight: var(--fw-bold);
6934
6947
  line-height: 1;
6935
6948
  `;
@@ -6942,7 +6955,7 @@ function ObjectSearchResultList({
6942
6955
  onRemoveAllSelected,
6943
6956
  hideRemoveButton = false,
6944
6957
  additionalButtons,
6945
- renderResultComponent = (value) => /* @__PURE__ */ jsx59(ObjectSearchResultItem, { ...value, disableDnD }),
6958
+ renderResultComponent = (value) => /* @__PURE__ */ jsx59(ObjectSearchResultItem, { ...value }),
6946
6959
  multiSelectId,
6947
6960
  disableDnD = false,
6948
6961
  whenNothingSelected = null
@@ -6985,18 +6998,31 @@ function ObjectSearchResultList({
6985
6998
  ] }),
6986
6999
  !selectedListItems.length ? whenNothingSelected : /* @__PURE__ */ jsx59(DragDropContext3, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ jsx59(Droppable3, { droppableId: multiSelectId != null ? multiSelectId : "canvas-multi-select", children: (provided) => /* @__PURE__ */ jsxs36("div", { ...provided.droppableProps, ref: provided.innerRef, children: [
6987
7000
  selectedListItems.map((item, i2) => {
6988
- const renderListItem = renderResultComponent(item);
6989
- return /* @__PURE__ */ jsx59(Draggable3, { draggableId: item.id, index: i2, isDragDisabled: disableDnD, children: (provided2, snapshot) => /* @__PURE__ */ jsx59(
6990
- "div",
7001
+ const itemValues = selectedListItems.length === 1 ? { ...item, disableDnD: true } : { ...item, disableDnD };
7002
+ const renderListItem = renderResultComponent(itemValues);
7003
+ return /* @__PURE__ */ jsx59(
7004
+ Draggable3,
6991
7005
  {
6992
- css: ObjectSearchDragContainer,
6993
- ref: provided2.innerRef,
6994
- "data-dragging": snapshot.isDragging,
6995
- ...provided2.draggableProps,
6996
- ...provided2.dragHandleProps,
6997
- children: renderListItem
6998
- }
6999
- ) }, item.id);
7006
+ draggableId: item.id,
7007
+ index: i2,
7008
+ isDragDisabled: selectedListItems.length === 1 || disableDnD,
7009
+ children: (provided2, snapshot) => /* @__PURE__ */ jsx59(
7010
+ "div",
7011
+ {
7012
+ css: [
7013
+ ObjectSearchDragContainer,
7014
+ snapshot.isDragging ? ObjectSearchContainerDragging : void 0
7015
+ ],
7016
+ ref: provided2.innerRef,
7017
+ "data-dragging": snapshot.isDragging,
7018
+ ...provided2.draggableProps,
7019
+ ...provided2.dragHandleProps,
7020
+ children: renderListItem
7021
+ }
7022
+ )
7023
+ },
7024
+ item.id
7025
+ );
7000
7026
  }),
7001
7027
  provided.placeholder
7002
7028
  ] }) }) })
@@ -7209,6 +7235,7 @@ import {
7209
7235
  AddListButton as AddListButton2,
7210
7236
  Button as Button6,
7211
7237
  Callout as Callout5,
7238
+ DrawerContent,
7212
7239
  Heading,
7213
7240
  Input as Input6,
7214
7241
  InputComboBox,
@@ -7254,6 +7281,7 @@ export {
7254
7281
  DataTypeEditor,
7255
7282
  DefaultSearchRow,
7256
7283
  DefaultSelectedItem,
7284
+ DrawerContent,
7257
7285
  EntrySearch,
7258
7286
  Heading,
7259
7287
  icons_exports as Icons,