@uniformdev/mesh-sdk-react 19.29.0 → 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
  }
@@ -5214,7 +5215,7 @@ var __privateAdd = (obj, member, value) => {
5214
5215
  member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
5215
5216
  };
5216
5217
  var defaultLimitPolicy = (0, import_p_limit.default)(6);
5217
- var ApiClientError = class extends Error {
5218
+ var ApiClientError = class _ApiClientError extends Error {
5218
5219
  constructor(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId) {
5219
5220
  super(
5220
5221
  `${errorMessage}
@@ -5226,10 +5227,10 @@ var ApiClientError = class extends Error {
5226
5227
  this.statusCode = statusCode;
5227
5228
  this.statusText = statusText;
5228
5229
  this.requestId = requestId;
5229
- Object.setPrototypeOf(this, ApiClientError.prototype);
5230
+ Object.setPrototypeOf(this, _ApiClientError.prototype);
5230
5231
  }
5231
5232
  };
5232
- var ApiClient = class {
5233
+ var ApiClient = class _ApiClient {
5233
5234
  constructor(options) {
5234
5235
  __publicField(this, "options");
5235
5236
  var _a, _b, _c, _d, _e;
@@ -5299,7 +5300,7 @@ var ApiClient = class {
5299
5300
  fetchUri.toString(),
5300
5301
  apiResponse.status,
5301
5302
  apiResponse.statusText,
5302
- ApiClient.getRequestId(apiResponse)
5303
+ _ApiClient.getRequestId(apiResponse)
5303
5304
  );
5304
5305
  }
5305
5306
  if (options == null ? void 0 : options.expectNoContent) {
@@ -5372,19 +5373,19 @@ async function handleRateLimits(callApi) {
5372
5373
  return response;
5373
5374
  }
5374
5375
  var _url;
5375
- var _AggregateClient = class extends ApiClient {
5376
+ var _AggregateClient = class _AggregateClient2 extends ApiClient {
5376
5377
  constructor(options) {
5377
5378
  super(options);
5378
5379
  }
5379
5380
  /** Fetches all aggregates for a project */
5380
5381
  async get(options) {
5381
5382
  const { projectId } = this.options;
5382
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url), { ...options, projectId });
5383
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url), { ...options, projectId });
5383
5384
  return await this.apiClient(fetchUri);
5384
5385
  }
5385
5386
  /** Updates or creates (based on id) an Aggregate */
5386
5387
  async upsert(body) {
5387
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url));
5388
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url));
5388
5389
  await this.apiClient(fetchUri, {
5389
5390
  method: "PUT",
5390
5391
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5393,7 +5394,7 @@ var _AggregateClient = class extends ApiClient {
5393
5394
  }
5394
5395
  /** Deletes an Aggregate */
5395
5396
  async remove(body) {
5396
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url));
5397
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url));
5397
5398
  await this.apiClient(fetchUri, {
5398
5399
  method: "DELETE",
5399
5400
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5401,39 +5402,37 @@ var _AggregateClient = class extends ApiClient {
5401
5402
  });
5402
5403
  }
5403
5404
  };
5404
- var AggregateClient = _AggregateClient;
5405
5405
  _url = /* @__PURE__ */ new WeakMap();
5406
- __privateAdd(AggregateClient, _url, "/api/v2/aggregate");
5406
+ __privateAdd(_AggregateClient, _url, "/api/v2/aggregate");
5407
5407
  var _url2;
5408
- var _DimensionClient = class extends ApiClient {
5408
+ var _DimensionClient = class _DimensionClient2 extends ApiClient {
5409
5409
  constructor(options) {
5410
5410
  super(options);
5411
5411
  }
5412
5412
  /** Fetches the known score dimensions for a project */
5413
5413
  async get(options) {
5414
5414
  const { projectId } = this.options;
5415
- const fetchUri = this.createUrl(__privateGet(_DimensionClient, _url2), { ...options, projectId });
5415
+ const fetchUri = this.createUrl(__privateGet(_DimensionClient2, _url2), { ...options, projectId });
5416
5416
  return await this.apiClient(fetchUri);
5417
5417
  }
5418
5418
  };
5419
- var DimensionClient = _DimensionClient;
5420
5419
  _url2 = /* @__PURE__ */ new WeakMap();
5421
- __privateAdd(DimensionClient, _url2, "/api/v2/dimension");
5420
+ __privateAdd(_DimensionClient, _url2, "/api/v2/dimension");
5422
5421
  var _url3;
5423
5422
  var _valueUrl;
5424
- var _EnrichmentClient = class extends ApiClient {
5423
+ var _EnrichmentClient = class _EnrichmentClient2 extends ApiClient {
5425
5424
  constructor(options) {
5426
5425
  super(options);
5427
5426
  }
5428
5427
  /** Fetches all enrichments and values for a project, grouped by category */
5429
5428
  async get(options) {
5430
5429
  const { projectId } = this.options;
5431
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3), { ...options, projectId });
5430
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3), { ...options, projectId });
5432
5431
  return await this.apiClient(fetchUri);
5433
5432
  }
5434
5433
  /** Updates or creates (based on id) an enrichment category */
5435
5434
  async upsertCategory(body) {
5436
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3));
5435
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3));
5437
5436
  await this.apiClient(fetchUri, {
5438
5437
  method: "PUT",
5439
5438
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5442,7 +5441,7 @@ var _EnrichmentClient = class extends ApiClient {
5442
5441
  }
5443
5442
  /** Deletes an enrichment category */
5444
5443
  async removeCategory(body) {
5445
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3));
5444
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3));
5446
5445
  await this.apiClient(fetchUri, {
5447
5446
  method: "DELETE",
5448
5447
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5451,7 +5450,7 @@ var _EnrichmentClient = class extends ApiClient {
5451
5450
  }
5452
5451
  /** Updates or creates (based on id) an enrichment value within an enrichment category */
5453
5452
  async upsertValue(body) {
5454
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _valueUrl));
5453
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _valueUrl));
5455
5454
  await this.apiClient(fetchUri, {
5456
5455
  method: "PUT",
5457
5456
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5460,7 +5459,7 @@ var _EnrichmentClient = class extends ApiClient {
5460
5459
  }
5461
5460
  /** Deletes an enrichment value within an enrichment category. The category is left alone. */
5462
5461
  async removeValue(body) {
5463
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _valueUrl));
5462
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _valueUrl));
5464
5463
  await this.apiClient(fetchUri, {
5465
5464
  method: "DELETE",
5466
5465
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5468,20 +5467,19 @@ var _EnrichmentClient = class extends ApiClient {
5468
5467
  });
5469
5468
  }
5470
5469
  };
5471
- var EnrichmentClient = _EnrichmentClient;
5472
5470
  _url3 = /* @__PURE__ */ new WeakMap();
5473
5471
  _valueUrl = /* @__PURE__ */ new WeakMap();
5474
- __privateAdd(EnrichmentClient, _url3, "/api/v1/enrichments");
5475
- __privateAdd(EnrichmentClient, _valueUrl, "/api/v1/enrichment-values");
5472
+ __privateAdd(_EnrichmentClient, _url3, "/api/v1/enrichments");
5473
+ __privateAdd(_EnrichmentClient, _valueUrl, "/api/v1/enrichment-values");
5476
5474
  var _url4;
5477
- var _ManifestClient = class extends ApiClient {
5475
+ var _ManifestClient = class _ManifestClient2 extends ApiClient {
5478
5476
  constructor(options) {
5479
5477
  super(options);
5480
5478
  }
5481
5479
  /** Fetches the Context manifest for a project */
5482
5480
  async get(options) {
5483
5481
  const { projectId } = this.options;
5484
- const fetchUri = this.createUrl(__privateGet(_ManifestClient, _url4), { ...options, projectId });
5482
+ const fetchUri = this.createUrl(__privateGet(_ManifestClient2, _url4), { ...options, projectId });
5485
5483
  return await this.apiClient(fetchUri);
5486
5484
  }
5487
5485
  /** Publishes the Context manifest for a project */
@@ -5494,23 +5492,22 @@ var _ManifestClient = class extends ApiClient {
5494
5492
  });
5495
5493
  }
5496
5494
  };
5497
- var ManifestClient = _ManifestClient;
5498
5495
  _url4 = /* @__PURE__ */ new WeakMap();
5499
- __privateAdd(ManifestClient, _url4, "/api/v2/manifest");
5496
+ __privateAdd(_ManifestClient, _url4, "/api/v2/manifest");
5500
5497
  var _url5;
5501
- var _QuirkClient = class extends ApiClient {
5498
+ var _QuirkClient = class _QuirkClient2 extends ApiClient {
5502
5499
  constructor(options) {
5503
5500
  super(options);
5504
5501
  }
5505
5502
  /** Fetches all Quirks for a project */
5506
5503
  async get(options) {
5507
5504
  const { projectId } = this.options;
5508
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5), { ...options, projectId });
5505
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5), { ...options, projectId });
5509
5506
  return await this.apiClient(fetchUri);
5510
5507
  }
5511
5508
  /** Updates or creates (based on id) a Quirk */
5512
5509
  async upsert(body) {
5513
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5));
5510
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5));
5514
5511
  await this.apiClient(fetchUri, {
5515
5512
  method: "PUT",
5516
5513
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5519,7 +5516,7 @@ var _QuirkClient = class extends ApiClient {
5519
5516
  }
5520
5517
  /** Deletes a Quirk */
5521
5518
  async remove(body) {
5522
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5));
5519
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5));
5523
5520
  await this.apiClient(fetchUri, {
5524
5521
  method: "DELETE",
5525
5522
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5527,23 +5524,22 @@ var _QuirkClient = class extends ApiClient {
5527
5524
  });
5528
5525
  }
5529
5526
  };
5530
- var QuirkClient = _QuirkClient;
5531
5527
  _url5 = /* @__PURE__ */ new WeakMap();
5532
- __privateAdd(QuirkClient, _url5, "/api/v2/quirk");
5528
+ __privateAdd(_QuirkClient, _url5, "/api/v2/quirk");
5533
5529
  var _url6;
5534
- var _SignalClient = class extends ApiClient {
5530
+ var _SignalClient = class _SignalClient2 extends ApiClient {
5535
5531
  constructor(options) {
5536
5532
  super(options);
5537
5533
  }
5538
5534
  /** Fetches all Signals for a project */
5539
5535
  async get(options) {
5540
5536
  const { projectId } = this.options;
5541
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6), { ...options, projectId });
5537
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6), { ...options, projectId });
5542
5538
  return await this.apiClient(fetchUri);
5543
5539
  }
5544
5540
  /** Updates or creates (based on id) a Signal */
5545
5541
  async upsert(body) {
5546
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6));
5542
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6));
5547
5543
  await this.apiClient(fetchUri, {
5548
5544
  method: "PUT",
5549
5545
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5552,7 +5548,7 @@ var _SignalClient = class extends ApiClient {
5552
5548
  }
5553
5549
  /** Deletes a Signal */
5554
5550
  async remove(body) {
5555
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6));
5551
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6));
5556
5552
  await this.apiClient(fetchUri, {
5557
5553
  method: "DELETE",
5558
5554
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5560,23 +5556,22 @@ var _SignalClient = class extends ApiClient {
5560
5556
  });
5561
5557
  }
5562
5558
  };
5563
- var SignalClient = _SignalClient;
5564
5559
  _url6 = /* @__PURE__ */ new WeakMap();
5565
- __privateAdd(SignalClient, _url6, "/api/v2/signal");
5560
+ __privateAdd(_SignalClient, _url6, "/api/v2/signal");
5566
5561
  var _url7;
5567
- var _TestClient = class extends ApiClient {
5562
+ var _TestClient = class _TestClient2 extends ApiClient {
5568
5563
  constructor(options) {
5569
5564
  super(options);
5570
5565
  }
5571
5566
  /** Fetches all Tests for a project */
5572
5567
  async get(options) {
5573
5568
  const { projectId } = this.options;
5574
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7), { ...options, projectId });
5569
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7), { ...options, projectId });
5575
5570
  return await this.apiClient(fetchUri);
5576
5571
  }
5577
5572
  /** Updates or creates (based on id) a Test */
5578
5573
  async upsert(body) {
5579
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7));
5574
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7));
5580
5575
  await this.apiClient(fetchUri, {
5581
5576
  method: "PUT",
5582
5577
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5585,7 +5580,7 @@ var _TestClient = class extends ApiClient {
5585
5580
  }
5586
5581
  /** Deletes a Test */
5587
5582
  async remove(body) {
5588
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7));
5583
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7));
5589
5584
  await this.apiClient(fetchUri, {
5590
5585
  method: "DELETE",
5591
5586
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5593,9 +5588,8 @@ var _TestClient = class extends ApiClient {
5593
5588
  });
5594
5589
  }
5595
5590
  };
5596
- var TestClient = _TestClient;
5597
5591
  _url7 = /* @__PURE__ */ new WeakMap();
5598
- __privateAdd(TestClient, _url7, "/api/v2/test");
5592
+ __privateAdd(_TestClient, _url7, "/api/v2/test");
5599
5593
 
5600
5594
  // ../../node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.esm.mjs
5601
5595
  init_emotion_jsx_shim();
@@ -6022,6 +6016,7 @@ var __privateAdd2 = (obj, member, value) => {
6022
6016
  };
6023
6017
  var require_retry_operation = __commonJS2({
6024
6018
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js"(exports, module) {
6019
+ "use strict";
6025
6020
  function RetryOperation(timeouts, options) {
6026
6021
  if (typeof options === "boolean") {
6027
6022
  options = { forever: options };
@@ -6155,6 +6150,7 @@ var require_retry_operation = __commonJS2({
6155
6150
  });
6156
6151
  var require_retry = __commonJS2({
6157
6152
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry.js"(exports) {
6153
+ "use strict";
6158
6154
  var RetryOperation = require_retry_operation();
6159
6155
  exports.operation = function(options) {
6160
6156
  var timeouts = exports.timeouts(options);
@@ -6239,24 +6235,25 @@ var require_retry = __commonJS2({
6239
6235
  });
6240
6236
  var require_retry2 = __commonJS2({
6241
6237
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/index.js"(exports, module) {
6238
+ "use strict";
6242
6239
  module.exports = require_retry();
6243
6240
  }
6244
6241
  });
6245
6242
  var import_retry = __toESM2(require_retry2(), 1);
6246
6243
  var _url8;
6247
- var _DataTypeClient = class extends ApiClient {
6244
+ var _DataTypeClient = class _DataTypeClient2 extends ApiClient {
6248
6245
  constructor(options) {
6249
6246
  super(options);
6250
6247
  }
6251
6248
  /** Fetches all DataTypes for a project */
6252
6249
  async get(options) {
6253
6250
  const { projectId } = this.options;
6254
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8), { ...options, projectId });
6251
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8), { ...options, projectId });
6255
6252
  return await this.apiClient(fetchUri);
6256
6253
  }
6257
6254
  /** Updates or creates (based on id) a DataType */
6258
6255
  async upsert(body) {
6259
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8));
6256
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8));
6260
6257
  await this.apiClient(fetchUri, {
6261
6258
  method: "PUT",
6262
6259
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -6265,7 +6262,7 @@ var _DataTypeClient = class extends ApiClient {
6265
6262
  }
6266
6263
  /** Deletes a DataType */
6267
6264
  async remove(body) {
6268
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8));
6265
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8));
6269
6266
  await this.apiClient(fetchUri, {
6270
6267
  method: "DELETE",
6271
6268
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -6273,9 +6270,8 @@ var _DataTypeClient = class extends ApiClient {
6273
6270
  });
6274
6271
  }
6275
6272
  };
6276
- var DataTypeClient = _DataTypeClient;
6277
6273
  _url8 = /* @__PURE__ */ new WeakMap();
6278
- __privateAdd2(DataTypeClient, _url8, "/api/v1/data-types");
6274
+ __privateAdd2(_DataTypeClient, _url8, "/api/v1/data-types");
6279
6275
  var EDGE_MAX_L2_CACHE_TTL_IN_HOURS = 4 * 7 * 24;
6280
6276
  function bindVariables({
6281
6277
  variables,
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;
@@ -3568,7 +3569,7 @@ var import_design_system15 = require("@uniformdev/design-system");
3568
3569
  var import_lexical2 = require("lexical");
3569
3570
  var import_react34 = require("react");
3570
3571
  var import_jsx_runtime30 = require("@emotion/react/jsx-runtime");
3571
- var VariableNode = class extends import_lexical2.DecoratorNode {
3572
+ var VariableNode = class _VariableNode extends import_lexical2.DecoratorNode {
3572
3573
  constructor(reference, state, key) {
3573
3574
  super(key);
3574
3575
  this.reference = reference;
@@ -3578,7 +3579,7 @@ var VariableNode = class extends import_lexical2.DecoratorNode {
3578
3579
  return "variable";
3579
3580
  }
3580
3581
  static clone(node) {
3581
- return new VariableNode(node.reference, { ...node.__state }, node.__key);
3582
+ return new _VariableNode(node.reference, { ...node.__state }, node.__key);
3582
3583
  }
3583
3584
  /** Imports the node from serialized JSON (i.e. the data provided to the editor's initial state) */
3584
3585
  static importJSON(serializedNode) {
@@ -3601,7 +3602,7 @@ var VariableNode = class extends import_lexical2.DecoratorNode {
3601
3602
  exportJSON() {
3602
3603
  return {
3603
3604
  reference: this.reference,
3604
- type: VariableNode.getType(),
3605
+ type: _VariableNode.getType(),
3605
3606
  version: 1
3606
3607
  };
3607
3608
  }
@@ -5336,7 +5337,7 @@ var __privateAdd = (obj, member, value) => {
5336
5337
  member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
5337
5338
  };
5338
5339
  var defaultLimitPolicy = (0, import_p_limit.default)(6);
5339
- var ApiClientError = class extends Error {
5340
+ var ApiClientError = class _ApiClientError extends Error {
5340
5341
  constructor(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId) {
5341
5342
  super(
5342
5343
  `${errorMessage}
@@ -5348,10 +5349,10 @@ var ApiClientError = class extends Error {
5348
5349
  this.statusCode = statusCode;
5349
5350
  this.statusText = statusText;
5350
5351
  this.requestId = requestId;
5351
- Object.setPrototypeOf(this, ApiClientError.prototype);
5352
+ Object.setPrototypeOf(this, _ApiClientError.prototype);
5352
5353
  }
5353
5354
  };
5354
- var ApiClient = class {
5355
+ var ApiClient = class _ApiClient {
5355
5356
  constructor(options) {
5356
5357
  __publicField(this, "options");
5357
5358
  var _a, _b, _c, _d, _e;
@@ -5421,7 +5422,7 @@ var ApiClient = class {
5421
5422
  fetchUri.toString(),
5422
5423
  apiResponse.status,
5423
5424
  apiResponse.statusText,
5424
- ApiClient.getRequestId(apiResponse)
5425
+ _ApiClient.getRequestId(apiResponse)
5425
5426
  );
5426
5427
  }
5427
5428
  if (options == null ? void 0 : options.expectNoContent) {
@@ -5494,19 +5495,19 @@ async function handleRateLimits(callApi) {
5494
5495
  return response;
5495
5496
  }
5496
5497
  var _url;
5497
- var _AggregateClient = class extends ApiClient {
5498
+ var _AggregateClient = class _AggregateClient2 extends ApiClient {
5498
5499
  constructor(options) {
5499
5500
  super(options);
5500
5501
  }
5501
5502
  /** Fetches all aggregates for a project */
5502
5503
  async get(options) {
5503
5504
  const { projectId } = this.options;
5504
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url), { ...options, projectId });
5505
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url), { ...options, projectId });
5505
5506
  return await this.apiClient(fetchUri);
5506
5507
  }
5507
5508
  /** Updates or creates (based on id) an Aggregate */
5508
5509
  async upsert(body) {
5509
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url));
5510
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url));
5510
5511
  await this.apiClient(fetchUri, {
5511
5512
  method: "PUT",
5512
5513
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5515,7 +5516,7 @@ var _AggregateClient = class extends ApiClient {
5515
5516
  }
5516
5517
  /** Deletes an Aggregate */
5517
5518
  async remove(body) {
5518
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url));
5519
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url));
5519
5520
  await this.apiClient(fetchUri, {
5520
5521
  method: "DELETE",
5521
5522
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5523,39 +5524,37 @@ var _AggregateClient = class extends ApiClient {
5523
5524
  });
5524
5525
  }
5525
5526
  };
5526
- var AggregateClient = _AggregateClient;
5527
5527
  _url = /* @__PURE__ */ new WeakMap();
5528
- __privateAdd(AggregateClient, _url, "/api/v2/aggregate");
5528
+ __privateAdd(_AggregateClient, _url, "/api/v2/aggregate");
5529
5529
  var _url2;
5530
- var _DimensionClient = class extends ApiClient {
5530
+ var _DimensionClient = class _DimensionClient2 extends ApiClient {
5531
5531
  constructor(options) {
5532
5532
  super(options);
5533
5533
  }
5534
5534
  /** Fetches the known score dimensions for a project */
5535
5535
  async get(options) {
5536
5536
  const { projectId } = this.options;
5537
- const fetchUri = this.createUrl(__privateGet(_DimensionClient, _url2), { ...options, projectId });
5537
+ const fetchUri = this.createUrl(__privateGet(_DimensionClient2, _url2), { ...options, projectId });
5538
5538
  return await this.apiClient(fetchUri);
5539
5539
  }
5540
5540
  };
5541
- var DimensionClient = _DimensionClient;
5542
5541
  _url2 = /* @__PURE__ */ new WeakMap();
5543
- __privateAdd(DimensionClient, _url2, "/api/v2/dimension");
5542
+ __privateAdd(_DimensionClient, _url2, "/api/v2/dimension");
5544
5543
  var _url3;
5545
5544
  var _valueUrl;
5546
- var _EnrichmentClient = class extends ApiClient {
5545
+ var _EnrichmentClient = class _EnrichmentClient2 extends ApiClient {
5547
5546
  constructor(options) {
5548
5547
  super(options);
5549
5548
  }
5550
5549
  /** Fetches all enrichments and values for a project, grouped by category */
5551
5550
  async get(options) {
5552
5551
  const { projectId } = this.options;
5553
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3), { ...options, projectId });
5552
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3), { ...options, projectId });
5554
5553
  return await this.apiClient(fetchUri);
5555
5554
  }
5556
5555
  /** Updates or creates (based on id) an enrichment category */
5557
5556
  async upsertCategory(body) {
5558
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3));
5557
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3));
5559
5558
  await this.apiClient(fetchUri, {
5560
5559
  method: "PUT",
5561
5560
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5564,7 +5563,7 @@ var _EnrichmentClient = class extends ApiClient {
5564
5563
  }
5565
5564
  /** Deletes an enrichment category */
5566
5565
  async removeCategory(body) {
5567
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3));
5566
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3));
5568
5567
  await this.apiClient(fetchUri, {
5569
5568
  method: "DELETE",
5570
5569
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5573,7 +5572,7 @@ var _EnrichmentClient = class extends ApiClient {
5573
5572
  }
5574
5573
  /** Updates or creates (based on id) an enrichment value within an enrichment category */
5575
5574
  async upsertValue(body) {
5576
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _valueUrl));
5575
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _valueUrl));
5577
5576
  await this.apiClient(fetchUri, {
5578
5577
  method: "PUT",
5579
5578
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5582,7 +5581,7 @@ var _EnrichmentClient = class extends ApiClient {
5582
5581
  }
5583
5582
  /** Deletes an enrichment value within an enrichment category. The category is left alone. */
5584
5583
  async removeValue(body) {
5585
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _valueUrl));
5584
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _valueUrl));
5586
5585
  await this.apiClient(fetchUri, {
5587
5586
  method: "DELETE",
5588
5587
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5590,20 +5589,19 @@ var _EnrichmentClient = class extends ApiClient {
5590
5589
  });
5591
5590
  }
5592
5591
  };
5593
- var EnrichmentClient = _EnrichmentClient;
5594
5592
  _url3 = /* @__PURE__ */ new WeakMap();
5595
5593
  _valueUrl = /* @__PURE__ */ new WeakMap();
5596
- __privateAdd(EnrichmentClient, _url3, "/api/v1/enrichments");
5597
- __privateAdd(EnrichmentClient, _valueUrl, "/api/v1/enrichment-values");
5594
+ __privateAdd(_EnrichmentClient, _url3, "/api/v1/enrichments");
5595
+ __privateAdd(_EnrichmentClient, _valueUrl, "/api/v1/enrichment-values");
5598
5596
  var _url4;
5599
- var _ManifestClient = class extends ApiClient {
5597
+ var _ManifestClient = class _ManifestClient2 extends ApiClient {
5600
5598
  constructor(options) {
5601
5599
  super(options);
5602
5600
  }
5603
5601
  /** Fetches the Context manifest for a project */
5604
5602
  async get(options) {
5605
5603
  const { projectId } = this.options;
5606
- const fetchUri = this.createUrl(__privateGet(_ManifestClient, _url4), { ...options, projectId });
5604
+ const fetchUri = this.createUrl(__privateGet(_ManifestClient2, _url4), { ...options, projectId });
5607
5605
  return await this.apiClient(fetchUri);
5608
5606
  }
5609
5607
  /** Publishes the Context manifest for a project */
@@ -5616,23 +5614,22 @@ var _ManifestClient = class extends ApiClient {
5616
5614
  });
5617
5615
  }
5618
5616
  };
5619
- var ManifestClient = _ManifestClient;
5620
5617
  _url4 = /* @__PURE__ */ new WeakMap();
5621
- __privateAdd(ManifestClient, _url4, "/api/v2/manifest");
5618
+ __privateAdd(_ManifestClient, _url4, "/api/v2/manifest");
5622
5619
  var _url5;
5623
- var _QuirkClient = class extends ApiClient {
5620
+ var _QuirkClient = class _QuirkClient2 extends ApiClient {
5624
5621
  constructor(options) {
5625
5622
  super(options);
5626
5623
  }
5627
5624
  /** Fetches all Quirks for a project */
5628
5625
  async get(options) {
5629
5626
  const { projectId } = this.options;
5630
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5), { ...options, projectId });
5627
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5), { ...options, projectId });
5631
5628
  return await this.apiClient(fetchUri);
5632
5629
  }
5633
5630
  /** Updates or creates (based on id) a Quirk */
5634
5631
  async upsert(body) {
5635
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5));
5632
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5));
5636
5633
  await this.apiClient(fetchUri, {
5637
5634
  method: "PUT",
5638
5635
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5641,7 +5638,7 @@ var _QuirkClient = class extends ApiClient {
5641
5638
  }
5642
5639
  /** Deletes a Quirk */
5643
5640
  async remove(body) {
5644
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5));
5641
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5));
5645
5642
  await this.apiClient(fetchUri, {
5646
5643
  method: "DELETE",
5647
5644
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5649,23 +5646,22 @@ var _QuirkClient = class extends ApiClient {
5649
5646
  });
5650
5647
  }
5651
5648
  };
5652
- var QuirkClient = _QuirkClient;
5653
5649
  _url5 = /* @__PURE__ */ new WeakMap();
5654
- __privateAdd(QuirkClient, _url5, "/api/v2/quirk");
5650
+ __privateAdd(_QuirkClient, _url5, "/api/v2/quirk");
5655
5651
  var _url6;
5656
- var _SignalClient = class extends ApiClient {
5652
+ var _SignalClient = class _SignalClient2 extends ApiClient {
5657
5653
  constructor(options) {
5658
5654
  super(options);
5659
5655
  }
5660
5656
  /** Fetches all Signals for a project */
5661
5657
  async get(options) {
5662
5658
  const { projectId } = this.options;
5663
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6), { ...options, projectId });
5659
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6), { ...options, projectId });
5664
5660
  return await this.apiClient(fetchUri);
5665
5661
  }
5666
5662
  /** Updates or creates (based on id) a Signal */
5667
5663
  async upsert(body) {
5668
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6));
5664
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6));
5669
5665
  await this.apiClient(fetchUri, {
5670
5666
  method: "PUT",
5671
5667
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5674,7 +5670,7 @@ var _SignalClient = class extends ApiClient {
5674
5670
  }
5675
5671
  /** Deletes a Signal */
5676
5672
  async remove(body) {
5677
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6));
5673
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6));
5678
5674
  await this.apiClient(fetchUri, {
5679
5675
  method: "DELETE",
5680
5676
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5682,23 +5678,22 @@ var _SignalClient = class extends ApiClient {
5682
5678
  });
5683
5679
  }
5684
5680
  };
5685
- var SignalClient = _SignalClient;
5686
5681
  _url6 = /* @__PURE__ */ new WeakMap();
5687
- __privateAdd(SignalClient, _url6, "/api/v2/signal");
5682
+ __privateAdd(_SignalClient, _url6, "/api/v2/signal");
5688
5683
  var _url7;
5689
- var _TestClient = class extends ApiClient {
5684
+ var _TestClient = class _TestClient2 extends ApiClient {
5690
5685
  constructor(options) {
5691
5686
  super(options);
5692
5687
  }
5693
5688
  /** Fetches all Tests for a project */
5694
5689
  async get(options) {
5695
5690
  const { projectId } = this.options;
5696
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7), { ...options, projectId });
5691
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7), { ...options, projectId });
5697
5692
  return await this.apiClient(fetchUri);
5698
5693
  }
5699
5694
  /** Updates or creates (based on id) a Test */
5700
5695
  async upsert(body) {
5701
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7));
5696
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7));
5702
5697
  await this.apiClient(fetchUri, {
5703
5698
  method: "PUT",
5704
5699
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5707,7 +5702,7 @@ var _TestClient = class extends ApiClient {
5707
5702
  }
5708
5703
  /** Deletes a Test */
5709
5704
  async remove(body) {
5710
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7));
5705
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7));
5711
5706
  await this.apiClient(fetchUri, {
5712
5707
  method: "DELETE",
5713
5708
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5715,9 +5710,8 @@ var _TestClient = class extends ApiClient {
5715
5710
  });
5716
5711
  }
5717
5712
  };
5718
- var TestClient = _TestClient;
5719
5713
  _url7 = /* @__PURE__ */ new WeakMap();
5720
- __privateAdd(TestClient, _url7, "/api/v2/test");
5714
+ __privateAdd(_TestClient, _url7, "/api/v2/test");
5721
5715
 
5722
5716
  // ../../node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.esm.mjs
5723
5717
  init_emotion_jsx_shim();
@@ -6144,6 +6138,7 @@ var __privateAdd2 = (obj, member, value) => {
6144
6138
  };
6145
6139
  var require_retry_operation = __commonJS2({
6146
6140
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js"(exports, module2) {
6141
+ "use strict";
6147
6142
  function RetryOperation(timeouts, options) {
6148
6143
  if (typeof options === "boolean") {
6149
6144
  options = { forever: options };
@@ -6277,6 +6272,7 @@ var require_retry_operation = __commonJS2({
6277
6272
  });
6278
6273
  var require_retry = __commonJS2({
6279
6274
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry.js"(exports) {
6275
+ "use strict";
6280
6276
  var RetryOperation = require_retry_operation();
6281
6277
  exports.operation = function(options) {
6282
6278
  var timeouts = exports.timeouts(options);
@@ -6361,24 +6357,25 @@ var require_retry = __commonJS2({
6361
6357
  });
6362
6358
  var require_retry2 = __commonJS2({
6363
6359
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/index.js"(exports, module2) {
6360
+ "use strict";
6364
6361
  module2.exports = require_retry();
6365
6362
  }
6366
6363
  });
6367
6364
  var import_retry = __toESM2(require_retry2(), 1);
6368
6365
  var _url8;
6369
- var _DataTypeClient = class extends ApiClient {
6366
+ var _DataTypeClient = class _DataTypeClient2 extends ApiClient {
6370
6367
  constructor(options) {
6371
6368
  super(options);
6372
6369
  }
6373
6370
  /** Fetches all DataTypes for a project */
6374
6371
  async get(options) {
6375
6372
  const { projectId } = this.options;
6376
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8), { ...options, projectId });
6373
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8), { ...options, projectId });
6377
6374
  return await this.apiClient(fetchUri);
6378
6375
  }
6379
6376
  /** Updates or creates (based on id) a DataType */
6380
6377
  async upsert(body) {
6381
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8));
6378
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8));
6382
6379
  await this.apiClient(fetchUri, {
6383
6380
  method: "PUT",
6384
6381
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -6387,7 +6384,7 @@ var _DataTypeClient = class extends ApiClient {
6387
6384
  }
6388
6385
  /** Deletes a DataType */
6389
6386
  async remove(body) {
6390
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8));
6387
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8));
6391
6388
  await this.apiClient(fetchUri, {
6392
6389
  method: "DELETE",
6393
6390
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -6395,9 +6392,8 @@ var _DataTypeClient = class extends ApiClient {
6395
6392
  });
6396
6393
  }
6397
6394
  };
6398
- var DataTypeClient = _DataTypeClient;
6399
6395
  _url8 = /* @__PURE__ */ new WeakMap();
6400
- __privateAdd2(DataTypeClient, _url8, "/api/v1/data-types");
6396
+ __privateAdd2(_DataTypeClient, _url8, "/api/v1/data-types");
6401
6397
  var EDGE_MAX_L2_CACHE_TTL_IN_HOURS = 4 * 7 * 24;
6402
6398
  function bindVariables({
6403
6399
  variables,
package/dist/index.mjs 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
  }
@@ -5214,7 +5215,7 @@ var __privateAdd = (obj, member, value) => {
5214
5215
  member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
5215
5216
  };
5216
5217
  var defaultLimitPolicy = (0, import_p_limit.default)(6);
5217
- var ApiClientError = class extends Error {
5218
+ var ApiClientError = class _ApiClientError extends Error {
5218
5219
  constructor(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId) {
5219
5220
  super(
5220
5221
  `${errorMessage}
@@ -5226,10 +5227,10 @@ var ApiClientError = class extends Error {
5226
5227
  this.statusCode = statusCode;
5227
5228
  this.statusText = statusText;
5228
5229
  this.requestId = requestId;
5229
- Object.setPrototypeOf(this, ApiClientError.prototype);
5230
+ Object.setPrototypeOf(this, _ApiClientError.prototype);
5230
5231
  }
5231
5232
  };
5232
- var ApiClient = class {
5233
+ var ApiClient = class _ApiClient {
5233
5234
  constructor(options) {
5234
5235
  __publicField(this, "options");
5235
5236
  var _a, _b, _c, _d, _e;
@@ -5299,7 +5300,7 @@ var ApiClient = class {
5299
5300
  fetchUri.toString(),
5300
5301
  apiResponse.status,
5301
5302
  apiResponse.statusText,
5302
- ApiClient.getRequestId(apiResponse)
5303
+ _ApiClient.getRequestId(apiResponse)
5303
5304
  );
5304
5305
  }
5305
5306
  if (options == null ? void 0 : options.expectNoContent) {
@@ -5372,19 +5373,19 @@ async function handleRateLimits(callApi) {
5372
5373
  return response;
5373
5374
  }
5374
5375
  var _url;
5375
- var _AggregateClient = class extends ApiClient {
5376
+ var _AggregateClient = class _AggregateClient2 extends ApiClient {
5376
5377
  constructor(options) {
5377
5378
  super(options);
5378
5379
  }
5379
5380
  /** Fetches all aggregates for a project */
5380
5381
  async get(options) {
5381
5382
  const { projectId } = this.options;
5382
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url), { ...options, projectId });
5383
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url), { ...options, projectId });
5383
5384
  return await this.apiClient(fetchUri);
5384
5385
  }
5385
5386
  /** Updates or creates (based on id) an Aggregate */
5386
5387
  async upsert(body) {
5387
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url));
5388
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url));
5388
5389
  await this.apiClient(fetchUri, {
5389
5390
  method: "PUT",
5390
5391
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5393,7 +5394,7 @@ var _AggregateClient = class extends ApiClient {
5393
5394
  }
5394
5395
  /** Deletes an Aggregate */
5395
5396
  async remove(body) {
5396
- const fetchUri = this.createUrl(__privateGet(_AggregateClient, _url));
5397
+ const fetchUri = this.createUrl(__privateGet(_AggregateClient2, _url));
5397
5398
  await this.apiClient(fetchUri, {
5398
5399
  method: "DELETE",
5399
5400
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5401,39 +5402,37 @@ var _AggregateClient = class extends ApiClient {
5401
5402
  });
5402
5403
  }
5403
5404
  };
5404
- var AggregateClient = _AggregateClient;
5405
5405
  _url = /* @__PURE__ */ new WeakMap();
5406
- __privateAdd(AggregateClient, _url, "/api/v2/aggregate");
5406
+ __privateAdd(_AggregateClient, _url, "/api/v2/aggregate");
5407
5407
  var _url2;
5408
- var _DimensionClient = class extends ApiClient {
5408
+ var _DimensionClient = class _DimensionClient2 extends ApiClient {
5409
5409
  constructor(options) {
5410
5410
  super(options);
5411
5411
  }
5412
5412
  /** Fetches the known score dimensions for a project */
5413
5413
  async get(options) {
5414
5414
  const { projectId } = this.options;
5415
- const fetchUri = this.createUrl(__privateGet(_DimensionClient, _url2), { ...options, projectId });
5415
+ const fetchUri = this.createUrl(__privateGet(_DimensionClient2, _url2), { ...options, projectId });
5416
5416
  return await this.apiClient(fetchUri);
5417
5417
  }
5418
5418
  };
5419
- var DimensionClient = _DimensionClient;
5420
5419
  _url2 = /* @__PURE__ */ new WeakMap();
5421
- __privateAdd(DimensionClient, _url2, "/api/v2/dimension");
5420
+ __privateAdd(_DimensionClient, _url2, "/api/v2/dimension");
5422
5421
  var _url3;
5423
5422
  var _valueUrl;
5424
- var _EnrichmentClient = class extends ApiClient {
5423
+ var _EnrichmentClient = class _EnrichmentClient2 extends ApiClient {
5425
5424
  constructor(options) {
5426
5425
  super(options);
5427
5426
  }
5428
5427
  /** Fetches all enrichments and values for a project, grouped by category */
5429
5428
  async get(options) {
5430
5429
  const { projectId } = this.options;
5431
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3), { ...options, projectId });
5430
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3), { ...options, projectId });
5432
5431
  return await this.apiClient(fetchUri);
5433
5432
  }
5434
5433
  /** Updates or creates (based on id) an enrichment category */
5435
5434
  async upsertCategory(body) {
5436
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3));
5435
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3));
5437
5436
  await this.apiClient(fetchUri, {
5438
5437
  method: "PUT",
5439
5438
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5442,7 +5441,7 @@ var _EnrichmentClient = class extends ApiClient {
5442
5441
  }
5443
5442
  /** Deletes an enrichment category */
5444
5443
  async removeCategory(body) {
5445
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _url3));
5444
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _url3));
5446
5445
  await this.apiClient(fetchUri, {
5447
5446
  method: "DELETE",
5448
5447
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5451,7 +5450,7 @@ var _EnrichmentClient = class extends ApiClient {
5451
5450
  }
5452
5451
  /** Updates or creates (based on id) an enrichment value within an enrichment category */
5453
5452
  async upsertValue(body) {
5454
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _valueUrl));
5453
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _valueUrl));
5455
5454
  await this.apiClient(fetchUri, {
5456
5455
  method: "PUT",
5457
5456
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5460,7 +5459,7 @@ var _EnrichmentClient = class extends ApiClient {
5460
5459
  }
5461
5460
  /** Deletes an enrichment value within an enrichment category. The category is left alone. */
5462
5461
  async removeValue(body) {
5463
- const fetchUri = this.createUrl(__privateGet(_EnrichmentClient, _valueUrl));
5462
+ const fetchUri = this.createUrl(__privateGet(_EnrichmentClient2, _valueUrl));
5464
5463
  await this.apiClient(fetchUri, {
5465
5464
  method: "DELETE",
5466
5465
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5468,20 +5467,19 @@ var _EnrichmentClient = class extends ApiClient {
5468
5467
  });
5469
5468
  }
5470
5469
  };
5471
- var EnrichmentClient = _EnrichmentClient;
5472
5470
  _url3 = /* @__PURE__ */ new WeakMap();
5473
5471
  _valueUrl = /* @__PURE__ */ new WeakMap();
5474
- __privateAdd(EnrichmentClient, _url3, "/api/v1/enrichments");
5475
- __privateAdd(EnrichmentClient, _valueUrl, "/api/v1/enrichment-values");
5472
+ __privateAdd(_EnrichmentClient, _url3, "/api/v1/enrichments");
5473
+ __privateAdd(_EnrichmentClient, _valueUrl, "/api/v1/enrichment-values");
5476
5474
  var _url4;
5477
- var _ManifestClient = class extends ApiClient {
5475
+ var _ManifestClient = class _ManifestClient2 extends ApiClient {
5478
5476
  constructor(options) {
5479
5477
  super(options);
5480
5478
  }
5481
5479
  /** Fetches the Context manifest for a project */
5482
5480
  async get(options) {
5483
5481
  const { projectId } = this.options;
5484
- const fetchUri = this.createUrl(__privateGet(_ManifestClient, _url4), { ...options, projectId });
5482
+ const fetchUri = this.createUrl(__privateGet(_ManifestClient2, _url4), { ...options, projectId });
5485
5483
  return await this.apiClient(fetchUri);
5486
5484
  }
5487
5485
  /** Publishes the Context manifest for a project */
@@ -5494,23 +5492,22 @@ var _ManifestClient = class extends ApiClient {
5494
5492
  });
5495
5493
  }
5496
5494
  };
5497
- var ManifestClient = _ManifestClient;
5498
5495
  _url4 = /* @__PURE__ */ new WeakMap();
5499
- __privateAdd(ManifestClient, _url4, "/api/v2/manifest");
5496
+ __privateAdd(_ManifestClient, _url4, "/api/v2/manifest");
5500
5497
  var _url5;
5501
- var _QuirkClient = class extends ApiClient {
5498
+ var _QuirkClient = class _QuirkClient2 extends ApiClient {
5502
5499
  constructor(options) {
5503
5500
  super(options);
5504
5501
  }
5505
5502
  /** Fetches all Quirks for a project */
5506
5503
  async get(options) {
5507
5504
  const { projectId } = this.options;
5508
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5), { ...options, projectId });
5505
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5), { ...options, projectId });
5509
5506
  return await this.apiClient(fetchUri);
5510
5507
  }
5511
5508
  /** Updates or creates (based on id) a Quirk */
5512
5509
  async upsert(body) {
5513
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5));
5510
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5));
5514
5511
  await this.apiClient(fetchUri, {
5515
5512
  method: "PUT",
5516
5513
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5519,7 +5516,7 @@ var _QuirkClient = class extends ApiClient {
5519
5516
  }
5520
5517
  /** Deletes a Quirk */
5521
5518
  async remove(body) {
5522
- const fetchUri = this.createUrl(__privateGet(_QuirkClient, _url5));
5519
+ const fetchUri = this.createUrl(__privateGet(_QuirkClient2, _url5));
5523
5520
  await this.apiClient(fetchUri, {
5524
5521
  method: "DELETE",
5525
5522
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5527,23 +5524,22 @@ var _QuirkClient = class extends ApiClient {
5527
5524
  });
5528
5525
  }
5529
5526
  };
5530
- var QuirkClient = _QuirkClient;
5531
5527
  _url5 = /* @__PURE__ */ new WeakMap();
5532
- __privateAdd(QuirkClient, _url5, "/api/v2/quirk");
5528
+ __privateAdd(_QuirkClient, _url5, "/api/v2/quirk");
5533
5529
  var _url6;
5534
- var _SignalClient = class extends ApiClient {
5530
+ var _SignalClient = class _SignalClient2 extends ApiClient {
5535
5531
  constructor(options) {
5536
5532
  super(options);
5537
5533
  }
5538
5534
  /** Fetches all Signals for a project */
5539
5535
  async get(options) {
5540
5536
  const { projectId } = this.options;
5541
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6), { ...options, projectId });
5537
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6), { ...options, projectId });
5542
5538
  return await this.apiClient(fetchUri);
5543
5539
  }
5544
5540
  /** Updates or creates (based on id) a Signal */
5545
5541
  async upsert(body) {
5546
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6));
5542
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6));
5547
5543
  await this.apiClient(fetchUri, {
5548
5544
  method: "PUT",
5549
5545
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5552,7 +5548,7 @@ var _SignalClient = class extends ApiClient {
5552
5548
  }
5553
5549
  /** Deletes a Signal */
5554
5550
  async remove(body) {
5555
- const fetchUri = this.createUrl(__privateGet(_SignalClient, _url6));
5551
+ const fetchUri = this.createUrl(__privateGet(_SignalClient2, _url6));
5556
5552
  await this.apiClient(fetchUri, {
5557
5553
  method: "DELETE",
5558
5554
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5560,23 +5556,22 @@ var _SignalClient = class extends ApiClient {
5560
5556
  });
5561
5557
  }
5562
5558
  };
5563
- var SignalClient = _SignalClient;
5564
5559
  _url6 = /* @__PURE__ */ new WeakMap();
5565
- __privateAdd(SignalClient, _url6, "/api/v2/signal");
5560
+ __privateAdd(_SignalClient, _url6, "/api/v2/signal");
5566
5561
  var _url7;
5567
- var _TestClient = class extends ApiClient {
5562
+ var _TestClient = class _TestClient2 extends ApiClient {
5568
5563
  constructor(options) {
5569
5564
  super(options);
5570
5565
  }
5571
5566
  /** Fetches all Tests for a project */
5572
5567
  async get(options) {
5573
5568
  const { projectId } = this.options;
5574
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7), { ...options, projectId });
5569
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7), { ...options, projectId });
5575
5570
  return await this.apiClient(fetchUri);
5576
5571
  }
5577
5572
  /** Updates or creates (based on id) a Test */
5578
5573
  async upsert(body) {
5579
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7));
5574
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7));
5580
5575
  await this.apiClient(fetchUri, {
5581
5576
  method: "PUT",
5582
5577
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5585,7 +5580,7 @@ var _TestClient = class extends ApiClient {
5585
5580
  }
5586
5581
  /** Deletes a Test */
5587
5582
  async remove(body) {
5588
- const fetchUri = this.createUrl(__privateGet(_TestClient, _url7));
5583
+ const fetchUri = this.createUrl(__privateGet(_TestClient2, _url7));
5589
5584
  await this.apiClient(fetchUri, {
5590
5585
  method: "DELETE",
5591
5586
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -5593,9 +5588,8 @@ var _TestClient = class extends ApiClient {
5593
5588
  });
5594
5589
  }
5595
5590
  };
5596
- var TestClient = _TestClient;
5597
5591
  _url7 = /* @__PURE__ */ new WeakMap();
5598
- __privateAdd(TestClient, _url7, "/api/v2/test");
5592
+ __privateAdd(_TestClient, _url7, "/api/v2/test");
5599
5593
 
5600
5594
  // ../../node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.esm.mjs
5601
5595
  init_emotion_jsx_shim();
@@ -6022,6 +6016,7 @@ var __privateAdd2 = (obj, member, value) => {
6022
6016
  };
6023
6017
  var require_retry_operation = __commonJS2({
6024
6018
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js"(exports, module) {
6019
+ "use strict";
6025
6020
  function RetryOperation(timeouts, options) {
6026
6021
  if (typeof options === "boolean") {
6027
6022
  options = { forever: options };
@@ -6155,6 +6150,7 @@ var require_retry_operation = __commonJS2({
6155
6150
  });
6156
6151
  var require_retry = __commonJS2({
6157
6152
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry.js"(exports) {
6153
+ "use strict";
6158
6154
  var RetryOperation = require_retry_operation();
6159
6155
  exports.operation = function(options) {
6160
6156
  var timeouts = exports.timeouts(options);
@@ -6239,24 +6235,25 @@ var require_retry = __commonJS2({
6239
6235
  });
6240
6236
  var require_retry2 = __commonJS2({
6241
6237
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/index.js"(exports, module) {
6238
+ "use strict";
6242
6239
  module.exports = require_retry();
6243
6240
  }
6244
6241
  });
6245
6242
  var import_retry = __toESM2(require_retry2(), 1);
6246
6243
  var _url8;
6247
- var _DataTypeClient = class extends ApiClient {
6244
+ var _DataTypeClient = class _DataTypeClient2 extends ApiClient {
6248
6245
  constructor(options) {
6249
6246
  super(options);
6250
6247
  }
6251
6248
  /** Fetches all DataTypes for a project */
6252
6249
  async get(options) {
6253
6250
  const { projectId } = this.options;
6254
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8), { ...options, projectId });
6251
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8), { ...options, projectId });
6255
6252
  return await this.apiClient(fetchUri);
6256
6253
  }
6257
6254
  /** Updates or creates (based on id) a DataType */
6258
6255
  async upsert(body) {
6259
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8));
6256
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8));
6260
6257
  await this.apiClient(fetchUri, {
6261
6258
  method: "PUT",
6262
6259
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -6265,7 +6262,7 @@ var _DataTypeClient = class extends ApiClient {
6265
6262
  }
6266
6263
  /** Deletes a DataType */
6267
6264
  async remove(body) {
6268
- const fetchUri = this.createUrl(__privateGet2(_DataTypeClient, _url8));
6265
+ const fetchUri = this.createUrl(__privateGet2(_DataTypeClient2, _url8));
6269
6266
  await this.apiClient(fetchUri, {
6270
6267
  method: "DELETE",
6271
6268
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -6273,9 +6270,8 @@ var _DataTypeClient = class extends ApiClient {
6273
6270
  });
6274
6271
  }
6275
6272
  };
6276
- var DataTypeClient = _DataTypeClient;
6277
6273
  _url8 = /* @__PURE__ */ new WeakMap();
6278
- __privateAdd2(DataTypeClient, _url8, "/api/v1/data-types");
6274
+ __privateAdd2(_DataTypeClient, _url8, "/api/v1/data-types");
6279
6275
  var EDGE_MAX_L2_CACHE_TTL_IN_HOURS = 4 * 7 * 24;
6280
6276
  function bindVariables({
6281
6277
  variables,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "19.29.0",
3
+ "version": "19.29.1-alpha.19+838467072",
4
4
  "description": "Uniform Mesh Framework SDK for React",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -45,13 +45,13 @@
45
45
  "dependencies": {
46
46
  "@hookform/resolvers": "^3.0.1",
47
47
  "@lexical/react": "^0.11.1",
48
- "@uniformdev/design-system": "19.29.0",
49
- "@uniformdev/mesh-sdk": "19.29.0",
48
+ "@uniformdev/design-system": "19.29.1-alpha.19+838467072",
49
+ "@uniformdev/mesh-sdk": "19.29.1-alpha.19+838467072",
50
50
  "lexical": "^0.11.1",
51
51
  "mitt": "^3.0.0",
52
52
  "react-beautiful-dnd": "13.1.1",
53
53
  "react-hook-form": "^7.43.9",
54
- "react-icons": "4.9.0",
54
+ "react-icons": "4.10.1",
55
55
  "react-use": "17.4.0",
56
56
  "timeago.js": "4.0.2",
57
57
  "uuid": "9.0.0",
@@ -80,5 +80,5 @@
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
- "gitHead": "f8e9d5f6283fb3d72ba095c0e307907dc591ce4a"
83
+ "gitHead": "8384670725623d7fab7ef04837c79491e7e45442"
84
84
  }