@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.js CHANGED
@@ -47,6 +47,7 @@ var init_emotion_jsx_shim = __esm({
47
47
  // ../../node_modules/.pnpm/yocto-queue@0.1.0/node_modules/yocto-queue/index.js
48
48
  var require_yocto_queue = __commonJS({
49
49
  "../../node_modules/.pnpm/yocto-queue@0.1.0/node_modules/yocto-queue/index.js"(exports, module2) {
50
+ "use strict";
50
51
  init_emotion_jsx_shim();
51
52
  var Node = class {
52
53
  /// value;
@@ -178,6 +179,7 @@ __export(src_exports, {
178
179
  DataTypeEditor: () => DataTypeEditor,
179
180
  DefaultSearchRow: () => DefaultSearchRow,
180
181
  DefaultSelectedItem: () => DefaultSelectedItem,
182
+ DrawerContent: () => import_design_system36.DrawerContent,
181
183
  EntrySearch: () => EntrySearch,
182
184
  Heading: () => import_design_system36.Heading,
183
185
  Icons: () => icons_exports,
@@ -3567,7 +3569,7 @@ var import_design_system15 = require("@uniformdev/design-system");
3567
3569
  var import_lexical2 = require("lexical");
3568
3570
  var import_react34 = require("react");
3569
3571
  var import_jsx_runtime30 = require("@emotion/react/jsx-runtime");
3570
- var VariableNode = class extends import_lexical2.DecoratorNode {
3572
+ var VariableNode = class _VariableNode extends import_lexical2.DecoratorNode {
3571
3573
  constructor(reference, state, key) {
3572
3574
  super(key);
3573
3575
  this.reference = reference;
@@ -3577,7 +3579,7 @@ var VariableNode = class extends import_lexical2.DecoratorNode {
3577
3579
  return "variable";
3578
3580
  }
3579
3581
  static clone(node) {
3580
- return new VariableNode(node.reference, { ...node.__state }, node.__key);
3582
+ return new _VariableNode(node.reference, { ...node.__state }, node.__key);
3581
3583
  }
3582
3584
  /** Imports the node from serialized JSON (i.e. the data provided to the editor's initial state) */
3583
3585
  static importJSON(serializedNode) {
@@ -3600,7 +3602,7 @@ var VariableNode = class extends import_lexical2.DecoratorNode {
3600
3602
  exportJSON() {
3601
3603
  return {
3602
3604
  reference: this.reference,
3603
- type: VariableNode.getType(),
3605
+ type: _VariableNode.getType(),
3604
3606
  version: 1
3605
3607
  };
3606
3608
  }
@@ -5307,6 +5309,7 @@ var DataRefreshButton = ({
5307
5309
 
5308
5310
  // src/components/ObjectSearch/ObjectSearchContainer.tsx
5309
5311
  init_emotion_jsx_shim();
5312
+ var import_react52 = require("@emotion/react");
5310
5313
 
5311
5314
  // ../canvas/dist/index.mjs
5312
5315
  init_emotion_jsx_shim();
@@ -5334,7 +5337,7 @@ var __privateAdd = (obj, member, value) => {
5334
5337
  member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
5335
5338
  };
5336
5339
  var defaultLimitPolicy = (0, import_p_limit.default)(6);
5337
- var ApiClientError = class extends Error {
5340
+ var ApiClientError = class _ApiClientError extends Error {
5338
5341
  constructor(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId) {
5339
5342
  super(
5340
5343
  `${errorMessage}
@@ -5346,10 +5349,10 @@ var ApiClientError = class extends Error {
5346
5349
  this.statusCode = statusCode;
5347
5350
  this.statusText = statusText;
5348
5351
  this.requestId = requestId;
5349
- Object.setPrototypeOf(this, ApiClientError.prototype);
5352
+ Object.setPrototypeOf(this, _ApiClientError.prototype);
5350
5353
  }
5351
5354
  };
5352
- var ApiClient = class {
5355
+ var ApiClient = class _ApiClient {
5353
5356
  constructor(options) {
5354
5357
  __publicField(this, "options");
5355
5358
  var _a, _b, _c, _d, _e;
@@ -5419,7 +5422,7 @@ var ApiClient = class {
5419
5422
  fetchUri.toString(),
5420
5423
  apiResponse.status,
5421
5424
  apiResponse.statusText,
5422
- ApiClient.getRequestId(apiResponse)
5425
+ _ApiClient.getRequestId(apiResponse)
5423
5426
  );
5424
5427
  }
5425
5428
  if (options == null ? void 0 : options.expectNoContent) {
@@ -5492,19 +5495,19 @@ async function handleRateLimits(callApi) {
5492
5495
  return response;
5493
5496
  }
5494
5497
  var _url;
5495
- var _AggregateClient = class extends ApiClient {
5498
+ var _AggregateClient = class _AggregateClient2 extends ApiClient {
5496
5499
  constructor(options) {
5497
5500
  super(options);
5498
5501
  }
5499
5502
  /** Fetches all aggregates for a project */
5500
5503
  async get(options) {
5501
5504
  const { projectId } = this.options;
5502
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url), { ...options, projectId });
5505
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url), { ...options, projectId });
5503
5506
  return await this.apiClient(fetchUri);
5504
5507
  }
5505
5508
  /** Updates or creates (based on id) an Aggregate */
5506
5509
  async upsert(body) {
5507
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url));
5510
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url));
5508
5511
  await this.apiClient(fetchUri, {
5509
5512
  method: "PUT",
5510
5513
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5513,7 +5516,7 @@ var _AggregateClient = class extends ApiClient {
5513
5516
  }
5514
5517
  /** Deletes an Aggregate */
5515
5518
  async remove(body) {
5516
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url));
5519
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url));
5517
5520
  await this.apiClient(fetchUri, {
5518
5521
  method: "DELETE",
5519
5522
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5521,39 +5524,37 @@ var _AggregateClient = class extends ApiClient {
5521
5524
  });
5522
5525
  }
5523
5526
  };
5524
- var AggregateClient = _AggregateClient;
5525
5527
  _url = /* @__PURE__ */ new WeakMap();
5526
- __privateAdd(AggregateClient, _url, "/api/v2/aggregate");
5528
+ __privateAdd(_AggregateClient, _url, "/api/v2/aggregate");
5527
5529
  var _url2;
5528
- var _DimensionClient = class extends ApiClient {
5530
+ var _DimensionClient = class _DimensionClient2 extends ApiClient {
5529
5531
  constructor(options) {
5530
5532
  super(options);
5531
5533
  }
5532
5534
  /** Fetches the known score dimensions for a project */
5533
5535
  async get(options) {
5534
5536
  const { projectId } = this.options;
5535
- const fetchUri = this.createUrl(__privateGet(_DimensionClient, _url2), { ...options, projectId });
5537
+ const fetchUri = this.createUrl(__privateGet(_DimensionClient2, _url2), { ...options, projectId });
5536
5538
  return await this.apiClient(fetchUri);
5537
5539
  }
5538
5540
  };
5539
- var DimensionClient = _DimensionClient;
5540
5541
  _url2 = /* @__PURE__ */ new WeakMap();
5541
- __privateAdd(DimensionClient, _url2, "/api/v2/dimension");
5542
+ __privateAdd(_DimensionClient, _url2, "/api/v2/dimension");
5542
5543
  var _url3;
5543
5544
  var _valueUrl;
5544
- var _EnrichmentClient = class extends ApiClient {
5545
+ var _EnrichmentClient = class _EnrichmentClient2 extends ApiClient {
5545
5546
  constructor(options) {
5546
5547
  super(options);
5547
5548
  }
5548
5549
  /** Fetches all enrichments and values for a project, grouped by category */
5549
5550
  async get(options) {
5550
5551
  const { projectId } = this.options;
5551
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3), { ...options, projectId });
5552
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3), { ...options, projectId });
5552
5553
  return await this.apiClient(fetchUri);
5553
5554
  }
5554
5555
  /** Updates or creates (based on id) an enrichment category */
5555
5556
  async upsertCategory(body) {
5556
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3));
5557
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3));
5557
5558
  await this.apiClient(fetchUri, {
5558
5559
  method: "PUT",
5559
5560
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5562,7 +5563,7 @@ var _EnrichmentClient = class extends ApiClient {
5562
5563
  }
5563
5564
  /** Deletes an enrichment category */
5564
5565
  async removeCategory(body) {
5565
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3));
5566
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3));
5566
5567
  await this.apiClient(fetchUri, {
5567
5568
  method: "DELETE",
5568
5569
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5571,7 +5572,7 @@ var _EnrichmentClient = class extends ApiClient {
5571
5572
  }
5572
5573
  /** Updates or creates (based on id) an enrichment value within an enrichment category */
5573
5574
  async upsertValue(body) {
5574
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _valueUrl));
5575
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _valueUrl));
5575
5576
  await this.apiClient(fetchUri, {
5576
5577
  method: "PUT",
5577
5578
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5580,7 +5581,7 @@ var _EnrichmentClient = class extends ApiClient {
5580
5581
  }
5581
5582
  /** Deletes an enrichment value within an enrichment category. The category is left alone. */
5582
5583
  async removeValue(body) {
5583
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _valueUrl));
5584
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _valueUrl));
5584
5585
  await this.apiClient(fetchUri, {
5585
5586
  method: "DELETE",
5586
5587
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5588,20 +5589,19 @@ var _EnrichmentClient = class extends ApiClient {
5588
5589
  });
5589
5590
  }
5590
5591
  };
5591
- var EnrichmentClient = _EnrichmentClient;
5592
5592
  _url3 = /* @__PURE__ */ new WeakMap();
5593
5593
  _valueUrl = /* @__PURE__ */ new WeakMap();
5594
- __privateAdd(EnrichmentClient, _url3, "/api/v1/enrichments");
5595
- __privateAdd(EnrichmentClient, _valueUrl, "/api/v1/enrichment-values");
5594
+ __privateAdd(_EnrichmentClient, _url3, "/api/v1/enrichments");
5595
+ __privateAdd(_EnrichmentClient, _valueUrl, "/api/v1/enrichment-values");
5596
5596
  var _url4;
5597
- var _ManifestClient = class extends ApiClient {
5597
+ var _ManifestClient = class _ManifestClient2 extends ApiClient {
5598
5598
  constructor(options) {
5599
5599
  super(options);
5600
5600
  }
5601
5601
  /** Fetches the Context manifest for a project */
5602
5602
  async get(options) {
5603
5603
  const { projectId } = this.options;
5604
- const fetchUri = this.createUrl(__privateGet(_ManifestClient, _url4), { ...options, projectId });
5604
+ const fetchUri = this.createUrl(__privateGet(_ManifestClient2, _url4), { ...options, projectId });
5605
5605
  return await this.apiClient(fetchUri);
5606
5606
  }
5607
5607
  /** Publishes the Context manifest for a project */
@@ -5614,23 +5614,22 @@ var _ManifestClient = class extends ApiClient {
5614
5614
  });
5615
5615
  }
5616
5616
  };
5617
- var ManifestClient = _ManifestClient;
5618
5617
  _url4 = /* @__PURE__ */ new WeakMap();
5619
- __privateAdd(ManifestClient, _url4, "/api/v2/manifest");
5618
+ __privateAdd(_ManifestClient, _url4, "/api/v2/manifest");
5620
5619
  var _url5;
5621
- var _QuirkClient = class extends ApiClient {
5620
+ var _QuirkClient = class _QuirkClient2 extends ApiClient {
5622
5621
  constructor(options) {
5623
5622
  super(options);
5624
5623
  }
5625
5624
  /** Fetches all Quirks for a project */
5626
5625
  async get(options) {
5627
5626
  const { projectId } = this.options;
5628
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5), { ...options, projectId });
5627
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5), { ...options, projectId });
5629
5628
  return await this.apiClient(fetchUri);
5630
5629
  }
5631
5630
  /** Updates or creates (based on id) a Quirk */
5632
5631
  async upsert(body) {
5633
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5));
5632
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5));
5634
5633
  await this.apiClient(fetchUri, {
5635
5634
  method: "PUT",
5636
5635
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5639,7 +5638,7 @@ var _QuirkClient = class extends ApiClient {
5639
5638
  }
5640
5639
  /** Deletes a Quirk */
5641
5640
  async remove(body) {
5642
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5));
5641
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5));
5643
5642
  await this.apiClient(fetchUri, {
5644
5643
  method: "DELETE",
5645
5644
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5647,23 +5646,22 @@ var _QuirkClient = class extends ApiClient {
5647
5646
  });
5648
5647
  }
5649
5648
  };
5650
- var QuirkClient = _QuirkClient;
5651
5649
  _url5 = /* @__PURE__ */ new WeakMap();
5652
- __privateAdd(QuirkClient, _url5, "/api/v2/quirk");
5650
+ __privateAdd(_QuirkClient, _url5, "/api/v2/quirk");
5653
5651
  var _url6;
5654
- var _SignalClient = class extends ApiClient {
5652
+ var _SignalClient = class _SignalClient2 extends ApiClient {
5655
5653
  constructor(options) {
5656
5654
  super(options);
5657
5655
  }
5658
5656
  /** Fetches all Signals for a project */
5659
5657
  async get(options) {
5660
5658
  const { projectId } = this.options;
5661
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6), { ...options, projectId });
5659
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6), { ...options, projectId });
5662
5660
  return await this.apiClient(fetchUri);
5663
5661
  }
5664
5662
  /** Updates or creates (based on id) a Signal */
5665
5663
  async upsert(body) {
5666
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6));
5664
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6));
5667
5665
  await this.apiClient(fetchUri, {
5668
5666
  method: "PUT",
5669
5667
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5672,7 +5670,7 @@ var _SignalClient = class extends ApiClient {
5672
5670
  }
5673
5671
  /** Deletes a Signal */
5674
5672
  async remove(body) {
5675
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6));
5673
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6));
5676
5674
  await this.apiClient(fetchUri, {
5677
5675
  method: "DELETE",
5678
5676
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5680,23 +5678,22 @@ var _SignalClient = class extends ApiClient {
5680
5678
  });
5681
5679
  }
5682
5680
  };
5683
- var SignalClient = _SignalClient;
5684
5681
  _url6 = /* @__PURE__ */ new WeakMap();
5685
- __privateAdd(SignalClient, _url6, "/api/v2/signal");
5682
+ __privateAdd(_SignalClient, _url6, "/api/v2/signal");
5686
5683
  var _url7;
5687
- var _TestClient = class extends ApiClient {
5684
+ var _TestClient = class _TestClient2 extends ApiClient {
5688
5685
  constructor(options) {
5689
5686
  super(options);
5690
5687
  }
5691
5688
  /** Fetches all Tests for a project */
5692
5689
  async get(options) {
5693
5690
  const { projectId } = this.options;
5694
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7), { ...options, projectId });
5691
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7), { ...options, projectId });
5695
5692
  return await this.apiClient(fetchUri);
5696
5693
  }
5697
5694
  /** Updates or creates (based on id) a Test */
5698
5695
  async upsert(body) {
5699
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7));
5696
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7));
5700
5697
  await this.apiClient(fetchUri, {
5701
5698
  method: "PUT",
5702
5699
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5705,7 +5702,7 @@ var _TestClient = class extends ApiClient {
5705
5702
  }
5706
5703
  /** Deletes a Test */
5707
5704
  async remove(body) {
5708
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7));
5705
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7));
5709
5706
  await this.apiClient(fetchUri, {
5710
5707
  method: "DELETE",
5711
5708
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5713,9 +5710,8 @@ var _TestClient = class extends ApiClient {
5713
5710
  });
5714
5711
  }
5715
5712
  };
5716
- var TestClient = _TestClient;
5717
5713
  _url7 = /* @__PURE__ */ new WeakMap();
5718
- __privateAdd(TestClient, _url7, "/api/v2/test");
5714
+ __privateAdd(_TestClient, _url7, "/api/v2/test");
5719
5715
 
5720
5716
  // ../../node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.esm.mjs
5721
5717
  init_emotion_jsx_shim();
@@ -6142,6 +6138,7 @@ var __privateAdd2 = (obj, member, value) => {
6142
6138
  };
6143
6139
  var require_retry_operation = __commonJS2({
6144
6140
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js"(exports, module2) {
6141
+ "use strict";
6145
6142
  function RetryOperation(timeouts, options) {
6146
6143
  if (typeof options === "boolean") {
6147
6144
  options = { forever: options };
@@ -6275,6 +6272,7 @@ var require_retry_operation = __commonJS2({
6275
6272
  });
6276
6273
  var require_retry = __commonJS2({
6277
6274
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry.js"(exports) {
6275
+ "use strict";
6278
6276
  var RetryOperation = require_retry_operation();
6279
6277
  exports.operation = function(options) {
6280
6278
  var timeouts = exports.timeouts(options);
@@ -6359,24 +6357,25 @@ var require_retry = __commonJS2({
6359
6357
  });
6360
6358
  var require_retry2 = __commonJS2({
6361
6359
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/index.js"(exports, module2) {
6360
+ "use strict";
6362
6361
  module2.exports = require_retry();
6363
6362
  }
6364
6363
  });
6365
6364
  var import_retry = __toESM2(require_retry2(), 1);
6366
6365
  var _url8;
6367
- var _DataTypeClient = class extends ApiClient {
6366
+ var _DataTypeClient = class _DataTypeClient2 extends ApiClient {
6368
6367
  constructor(options) {
6369
6368
  super(options);
6370
6369
  }
6371
6370
  /** Fetches all DataTypes for a project */
6372
6371
  async get(options) {
6373
6372
  const { projectId } = this.options;
6374
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8), { ...options, projectId });
6373
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8), { ...options, projectId });
6375
6374
  return await this.apiClient(fetchUri);
6376
6375
  }
6377
6376
  /** Updates or creates (based on id) a DataType */
6378
6377
  async upsert(body) {
6379
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8));
6378
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8));
6380
6379
  await this.apiClient(fetchUri, {
6381
6380
  method: "PUT",
6382
6381
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -6385,7 +6384,7 @@ var _DataTypeClient = class extends ApiClient {
6385
6384
  }
6386
6385
  /** Deletes a DataType */
6387
6386
  async remove(body) {
6388
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8));
6387
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8));
6389
6388
  await this.apiClient(fetchUri, {
6390
6389
  method: "DELETE",
6391
6390
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -6393,9 +6392,8 @@ var _DataTypeClient = class extends ApiClient {
6393
6392
  });
6394
6393
  }
6395
6394
  };
6396
- var DataTypeClient = _DataTypeClient;
6397
6395
  _url8 = /* @__PURE__ */ new WeakMap();
6398
- __privateAdd2(DataTypeClient, _url8, "/api/v1/data-types");
6396
+ __privateAdd2(_DataTypeClient, _url8, "/api/v1/data-types");
6399
6397
  var EDGE_MAX_L2_CACHE_TTL_IN_HOURS = 4 * 7 * 24;
6400
6398
  function bindVariables({
6401
6399
  variables,
@@ -6586,7 +6584,19 @@ var ObjectSearchContainer = ({
6586
6584
  const { flatVariables } = useVariables(true);
6587
6585
  const body = /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_design_system27.VerticalRhythm, { children: [
6588
6586
  searchFilters,
6589
- !resultList ? null : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_design_system27.ScrollableList, { role: "list", children: resultList })
6587
+ !resultList ? null : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
6588
+ import_design_system27.ScrollableList,
6589
+ {
6590
+ role: "list",
6591
+ css: import_react52.css`
6592
+ > div {
6593
+ transition: max-height var(--duration-slow) var(--timing-ease-out);
6594
+ max-height: ${selectedListItems.length === 0 ? "50vh" : "184px"};
6595
+ }
6596
+ `,
6597
+ children: resultList
6598
+ }
6599
+ )
6590
6600
  ] });
6591
6601
  const handleSelectedVariableChange = (selectedValue) => {
6592
6602
  var _a2;
@@ -6633,12 +6643,12 @@ var ObjectSearchContainer = ({
6633
6643
  // src/components/ObjectSearch/ObjectSearchFilter.tsx
6634
6644
  init_emotion_jsx_shim();
6635
6645
  var import_design_system28 = require("@uniformdev/design-system");
6636
- var import_react53 = require("react");
6646
+ var import_react54 = require("react");
6637
6647
 
6638
6648
  // src/components/ObjectSearch/styles/ObjectSearchFilterContainer.styles.ts
6639
6649
  init_emotion_jsx_shim();
6640
- var import_react52 = require("@emotion/react");
6641
- var ObjectSearchFilterContainerLabel = import_react52.css`
6650
+ var import_react53 = require("@emotion/react");
6651
+ var ObjectSearchFilterContainerLabel = import_react53.css`
6642
6652
  align-items: center;
6643
6653
  display: flex;
6644
6654
  font-size: var(--fs-sm);
@@ -6646,14 +6656,14 @@ var ObjectSearchFilterContainerLabel = import_react52.css`
6646
6656
  line-height: 1rem;
6647
6657
  margin-bottom: var(--spacing-sm);
6648
6658
  `;
6649
- var ObjectSearchFilterContainer = import_react52.css`
6659
+ var ObjectSearchFilterContainer = import_react53.css`
6650
6660
  display: grid;
6651
6661
  gap: var(--spacing-base);
6652
6662
  `;
6653
- var ObjectSearchFilterDropdownAndTextSearch = import_react52.css`
6663
+ var ObjectSearchFilterDropdownAndTextSearch = import_react53.css`
6654
6664
  grid-template-columns: 0.5fr 1fr;
6655
6665
  `;
6656
- var ObjectSearchFilterGrid = (gridColumns) => import_react52.css`
6666
+ var ObjectSearchFilterGrid = (gridColumns) => import_react53.css`
6657
6667
  display: grid;
6658
6668
  grid-template-columns: ${gridColumns};
6659
6669
  gap: var(--spacing-base);
@@ -6670,7 +6680,7 @@ var ObjectSearchFilter = ({
6670
6680
  selectOptions
6671
6681
  }) => {
6672
6682
  const { query, onSetQuery } = useObjectSearchContext();
6673
- const [searchState, setSearchState] = (0, import_react53.useState)({
6683
+ const [searchState, setSearchState] = (0, import_react54.useState)({
6674
6684
  contentType: "",
6675
6685
  keyword: ""
6676
6686
  });
@@ -6727,22 +6737,18 @@ var import_design_system30 = require("@uniformdev/design-system");
6727
6737
 
6728
6738
  // src/components/ObjectSearch/styles/ObjectSearchListItem.styles.ts
6729
6739
  init_emotion_jsx_shim();
6730
- var import_react54 = require("@emotion/react");
6740
+ var import_react55 = require("@emotion/react");
6731
6741
  var import_design_system29 = require("@uniformdev/design-system");
6732
- var ObjectListItemContainer = import_react54.css`
6742
+ var ObjectListItemContainer = import_react55.css`
6733
6743
  align-items: center;
6734
6744
  border: 1px solid var(--gray-300);
6735
6745
  border-radius: var(--rounded-base);
6736
6746
  background: var(--white);
6737
6747
  display: grid;
6738
- grid-template-columns: 1fr 32px;
6748
+ grid-template-columns: 1fr auto;
6739
6749
  padding: var(--spacing-sm);
6740
-
6741
- &[hidden] {
6742
- display: none;
6743
- }
6744
6750
  `;
6745
- var ObjectListItemLoading = import_react54.css`
6751
+ var ObjectListItemLoading = import_react55.css`
6746
6752
  animation: ${import_design_system29.skeletonLoading} 1s linear infinite alternate;
6747
6753
  border-color: transparent;
6748
6754
  min-height: 42px;
@@ -6766,31 +6772,32 @@ var ObjectListItemLoading = import_react54.css`
6766
6772
  width: 1rem;
6767
6773
  }
6768
6774
  `;
6769
- var ObjectListItemHeadingGroup = import_react54.css`
6775
+ var ObjectListItemHeadingGroup = import_react55.css`
6770
6776
  align-items: center;
6771
6777
  display: grid;
6772
6778
  `;
6773
- var ObjectListItemTitle = import_react54.css`
6779
+ var ObjectListItemTitle = import_react55.css`
6774
6780
  color: var(--brand-secondary-1);
6775
6781
  display: block;
6776
6782
  font-size: var(--fs-sm);
6777
6783
  `;
6778
- var ObjectListItemSubtitle = import_react54.css`
6784
+ var ObjectListItemSubtitle = import_react55.css`
6779
6785
  color: var(--gray-500);
6780
6786
  display: block;
6781
6787
  font-size: var(--fs-xs);
6782
6788
  line-height: 1;
6783
6789
  `;
6784
- var ObjectListItemInfoContainer = import_react54.css`
6790
+ var ObjectListItemInfoContainer = import_react55.css`
6785
6791
  align-items: center;
6786
6792
  display: flex;
6793
+ gap: var(--spacing-sm);
6787
6794
  justify-content: center;
6788
6795
  `;
6789
- var ObjectListItemControlledContent = import_react54.css`
6796
+ var ObjectListItemControlledContent = import_react55.css`
6790
6797
  display: flex;
6791
6798
  gap: var(--spacing-sm);
6792
6799
  `;
6793
- var ObjectListItemUnControlledContent = import_react54.css`
6800
+ var ObjectListItemUnControlledContent = import_react55.css`
6794
6801
  margin-top: var(--spacing-sm);
6795
6802
  grid-column: 1 / -1;
6796
6803
  `;
@@ -6818,8 +6825,8 @@ var ObjectSearchListItem = ({
6818
6825
  }
6819
6826
  return onSelectItem([selectedItem]);
6820
6827
  };
6821
- const hideWhenInSelectedList = selectedListItems.some((item) => item.id === id);
6822
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { role: "listitem", hidden: hideWhenInSelectedList, css: ObjectListItemContainer, children: [
6828
+ const selected = selectedListItems.some((item) => item.id === id);
6829
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { role: "listitem", css: ObjectListItemContainer, children: [
6823
6830
  /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { role: "button", onClick: handleSelectItem, css: ObjectListItemControlledContent, children: [
6824
6831
  !image ? null : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("img", { ...image, loading: (image == null ? void 0 : image.width) && image.height ? "lazy" : "eager" }),
6825
6832
  /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
@@ -6827,7 +6834,10 @@ var ObjectSearchListItem = ({
6827
6834
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { css: ObjectListItemTitle, children: title })
6828
6835
  ] })
6829
6836
  ] }),
6830
- !popoverData ? null : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { css: ObjectListItemInfoContainer, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_design_system30.Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, children: popoverData }) }),
6837
+ !popoverData ? null : /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { css: ObjectListItemInfoContainer, children: [
6838
+ selected ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_design_system30.Chip, { text: "selected", size: "xs" }) : null,
6839
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_design_system30.Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, iconColor: "default", children: popoverData })
6840
+ ] }),
6831
6841
  !children ? null : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { css: ObjectListItemUnControlledContent, children })
6832
6842
  ] });
6833
6843
  };
@@ -6845,9 +6855,9 @@ init_emotion_jsx_shim();
6845
6855
 
6846
6856
  // src/components/ObjectSearch/styles/ObjectSearchResultItemButton.styles.ts
6847
6857
  init_emotion_jsx_shim();
6848
- var import_react55 = require("@emotion/react");
6858
+ var import_react56 = require("@emotion/react");
6849
6859
  var import_design_system31 = require("@uniformdev/design-system");
6850
- var ButtonStyles = import_react55.css`
6860
+ var ButtonStyles = import_react56.css`
6851
6861
  ${import_design_system31.button}
6852
6862
  background: transparent;
6853
6863
  border: 1px solid var(--brand-secondary-1);
@@ -6874,7 +6884,7 @@ var ButtonStyles = import_react55.css`
6874
6884
  text-decoration: none;
6875
6885
  }
6876
6886
  `;
6877
- var ButtonIcon = import_react55.css`
6887
+ var ButtonIcon = import_react56.css`
6878
6888
  width: 1rem;
6879
6889
  height: 1rem;
6880
6890
  `;
@@ -6904,8 +6914,8 @@ var LinkButton = ({
6904
6914
 
6905
6915
  // src/components/ObjectSearch/styles/ObjectSearchResultItem.styles.ts
6906
6916
  init_emotion_jsx_shim();
6907
- var import_react56 = require("@emotion/react");
6908
- var ObjectSearchResultItemContainer = import_react56.css`
6917
+ var import_react57 = require("@emotion/react");
6918
+ var ObjectSearchResultItemContainer = import_react57.css`
6909
6919
  align-items: center;
6910
6920
  border: 1px solid var(--gray-300);
6911
6921
  border-radius: var(--rounded-base);
@@ -6921,7 +6931,7 @@ var ObjectSearchResultItemContainer = import_react56.css`
6921
6931
  }
6922
6932
  }
6923
6933
  `;
6924
- var ObjectSearchDragHandle = import_react56.css`
6934
+ var ObjectSearchDragHandle = import_react57.css`
6925
6935
  border-left: 2px dotted var(--gray-300);
6926
6936
  border-right: 2px dotted var(--gray-300);
6927
6937
  position: absolute;
@@ -6930,35 +6940,35 @@ var ObjectSearchDragHandle = import_react56.css`
6930
6940
  transition: opacity var(--duration-fast) var(--timing-ease-out);
6931
6941
  opacity: 0;
6932
6942
  `;
6933
- var ObjectSearchResultItemSubtitle = import_react56.css`
6943
+ var ObjectSearchResultItemSubtitle = import_react57.css`
6934
6944
  color: var(--gray-500);
6935
6945
  display: block;
6936
6946
  font-size: var(--fs-xs);
6937
6947
  line-height: 1;
6938
6948
  `;
6939
- var ObjectSearchResultItemTitle = import_react56.css`
6949
+ var ObjectSearchResultItemTitle = import_react57.css`
6940
6950
  align-items: center;
6941
6951
  color: var(--brand-secondary-1);
6942
6952
  display: flex;
6943
6953
  gap: var(--spacing-xs);
6944
6954
  `;
6945
- var ObjectSearchResultItemTimeStamp = import_react56.css`
6955
+ var ObjectSearchResultItemTimeStamp = import_react57.css`
6946
6956
  color: var(--gray-500);
6947
6957
  font-size: var(--fs-xs);
6948
6958
  `;
6949
- var ObjectSearchAuthorStateGroup = import_react56.css`
6959
+ var ObjectSearchAuthorStateGroup = import_react57.css`
6950
6960
  align-items: center;
6951
6961
  display: flex;
6952
6962
  gap: var(--spacing-sm);
6953
6963
  `;
6954
- var ObjectSearchUpdateGroup = import_react56.css`
6964
+ var ObjectSearchUpdateGroup = import_react57.css`
6955
6965
  display: grid;
6956
6966
  `;
6957
- var ObjectSearchContentContainer = import_react56.css`
6967
+ var ObjectSearchContentContainer = import_react57.css`
6958
6968
  display: flex;
6959
6969
  gap: var(--spacing-base);
6960
6970
  `;
6961
- var ObjectSearchImage = import_react56.css`
6971
+ var ObjectSearchImage = import_react57.css`
6962
6972
  width: 56px;
6963
6973
  object-fit: contain;
6964
6974
  `;
@@ -7028,22 +7038,26 @@ var import_react_beautiful_dnd3 = require("react-beautiful-dnd");
7028
7038
 
7029
7039
  // src/components/ObjectSearch/styles/ObjectSearchResultList.styles.ts
7030
7040
  init_emotion_jsx_shim();
7031
- var import_react57 = require("@emotion/react");
7032
- var ObjectSearchResultListContainer = import_react57.css`
7041
+ var import_react58 = require("@emotion/react");
7042
+ var ObjectSearchResultListContainer = import_react58.css`
7033
7043
  align-items: center;
7034
7044
  display: flex;
7035
7045
  gap: var(--spacing-sm);
7036
7046
  justify-content: space-between;
7037
7047
  `;
7038
- var ObjectSearchDragContainer = import_react57.css`
7048
+ var ObjectSearchDragContainer = import_react58.css`
7039
7049
  margin: 0 0 var(--spacing-sm);
7040
7050
  `;
7041
- var ObjectSearchResultListCounterContainer = import_react57.css`
7051
+ var ObjectSearchContainerDragging = import_react58.css`
7052
+ box-shadow: var(--shadow-base);
7053
+ opacity: var(--opacity-50);
7054
+ `;
7055
+ var ObjectSearchResultListCounterContainer = import_react58.css`
7042
7056
  align-items: center;
7043
7057
  display: flex;
7044
7058
  gap: var(--spacing-sm);
7045
7059
  `;
7046
- var ObjectSearchResultListTitle = import_react57.css`
7060
+ var ObjectSearchResultListTitle = import_react58.css`
7047
7061
  font-weight: var(--fw-bold);
7048
7062
  line-height: 1;
7049
7063
  `;
@@ -7056,7 +7070,7 @@ function ObjectSearchResultList({
7056
7070
  onRemoveAllSelected,
7057
7071
  hideRemoveButton = false,
7058
7072
  additionalButtons,
7059
- renderResultComponent = (value) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ObjectSearchResultItem, { ...value, disableDnD }),
7073
+ renderResultComponent = (value) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ObjectSearchResultItem, { ...value }),
7060
7074
  multiSelectId,
7061
7075
  disableDnD = false,
7062
7076
  whenNothingSelected = null
@@ -7099,18 +7113,31 @@ function ObjectSearchResultList({
7099
7113
  ] }),
7100
7114
  !selectedListItems.length ? whenNothingSelected : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_beautiful_dnd3.DragDropContext, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_beautiful_dnd3.Droppable, { droppableId: multiSelectId != null ? multiSelectId : "canvas-multi-select", children: (provided) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { ...provided.droppableProps, ref: provided.innerRef, children: [
7101
7115
  selectedListItems.map((item, i2) => {
7102
- const renderListItem = renderResultComponent(item);
7103
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_beautiful_dnd3.Draggable, { draggableId: item.id, index: i2, isDragDisabled: disableDnD, children: (provided2, snapshot) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7104
- "div",
7116
+ const itemValues = selectedListItems.length === 1 ? { ...item, disableDnD: true } : { ...item, disableDnD };
7117
+ const renderListItem = renderResultComponent(itemValues);
7118
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7119
+ import_react_beautiful_dnd3.Draggable,
7105
7120
  {
7106
- css: ObjectSearchDragContainer,
7107
- ref: provided2.innerRef,
7108
- "data-dragging": snapshot.isDragging,
7109
- ...provided2.draggableProps,
7110
- ...provided2.dragHandleProps,
7111
- children: renderListItem
7112
- }
7113
- ) }, item.id);
7121
+ draggableId: item.id,
7122
+ index: i2,
7123
+ isDragDisabled: selectedListItems.length === 1 || disableDnD,
7124
+ children: (provided2, snapshot) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7125
+ "div",
7126
+ {
7127
+ css: [
7128
+ ObjectSearchDragContainer,
7129
+ snapshot.isDragging ? ObjectSearchContainerDragging : void 0
7130
+ ],
7131
+ ref: provided2.innerRef,
7132
+ "data-dragging": snapshot.isDragging,
7133
+ ...provided2.draggableProps,
7134
+ ...provided2.dragHandleProps,
7135
+ children: renderListItem
7136
+ }
7137
+ )
7138
+ },
7139
+ item.id
7140
+ );
7114
7141
  }),
7115
7142
  provided.placeholder
7116
7143
  ] }) }) })
@@ -7120,7 +7147,7 @@ function ObjectSearchResultList({
7120
7147
  // src/components/ObjectSearch/QueryFilter.tsx
7121
7148
  init_emotion_jsx_shim();
7122
7149
  var import_design_system34 = require("@uniformdev/design-system");
7123
- var import_react58 = require("react");
7150
+ var import_react59 = require("react");
7124
7151
  var import_jsx_runtime60 = require("@emotion/react/jsx-runtime");
7125
7152
  var QueryFilter = ({
7126
7153
  requireContentType,
@@ -7152,7 +7179,7 @@ var QueryFilter = ({
7152
7179
  }) => {
7153
7180
  var _a, _b, _c, _d;
7154
7181
  const { query, onSetQuery } = useObjectSearchContext();
7155
- const [queryState, setQueryState] = (0, import_react58.useState)({
7182
+ const [queryState, setQueryState] = (0, import_react59.useState)({
7156
7183
  contentType: "",
7157
7184
  keyword: "",
7158
7185
  count: countValue != null ? countValue : 5,
@@ -7163,7 +7190,7 @@ var QueryFilter = ({
7163
7190
  setQueryState((prev) => ({ ...prev, ...value }));
7164
7191
  onSetQuery({ ...query, ...value });
7165
7192
  };
7166
- (0, import_react58.useEffect)(() => {
7193
+ (0, import_react59.useEffect)(() => {
7167
7194
  onSetQuery(queryState);
7168
7195
  }, [onSetQuery, queryState]);
7169
7196
  return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("fieldset", { children: [
@@ -7335,6 +7362,7 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
7335
7362
  DataTypeEditor,
7336
7363
  DefaultSearchRow,
7337
7364
  DefaultSelectedItem,
7365
+ DrawerContent,
7338
7366
  EntrySearch,
7339
7367
  Heading,
7340
7368
  Icons,