@uniformdev/mesh-sdk-react 19.7.0 → 19.8.0

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
@@ -1,12 +1,166 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __esm = (fn2, res) => function __init() {
8
+ return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
9
+ };
10
+ var __commonJS = (cb, mod) => function __require() {
11
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
+ };
2
13
  var __export = (target, all) => {
3
14
  for (var name in all)
4
15
  __defProp(target, name, { get: all[name], enumerable: true });
5
16
  };
17
+ var __copyProps = (to, from, except, desc) => {
18
+ if (from && typeof from === "object" || typeof from === "function") {
19
+ for (let key of __getOwnPropNames(from))
20
+ if (!__hasOwnProp.call(to, key) && key !== except)
21
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
+ }
23
+ return to;
24
+ };
25
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26
+ // If the importer is in node compatibility mode or this is not an ESM
27
+ // file that has been converted to a CommonJS file using a Babel-
28
+ // compatible transform (i.e. "__esModule" has not been set), then set
29
+ // "default" to the CommonJS "module.exports" for node compatibility.
30
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
31
+ mod
32
+ ));
6
33
 
7
34
  // ../../scripts/emotion-jsx-shim.js
8
35
  import { jsx } from "@emotion/react";
9
36
  import * as React from "react";
37
+ var init_emotion_jsx_shim = __esm({
38
+ "../../scripts/emotion-jsx-shim.js"() {
39
+ "use strict";
40
+ }
41
+ });
42
+
43
+ // ../../node_modules/.pnpm/yocto-queue@0.1.0/node_modules/yocto-queue/index.js
44
+ var require_yocto_queue = __commonJS({
45
+ "../../node_modules/.pnpm/yocto-queue@0.1.0/node_modules/yocto-queue/index.js"(exports, module) {
46
+ init_emotion_jsx_shim();
47
+ var Node = class {
48
+ /// value;
49
+ /// next;
50
+ constructor(value) {
51
+ this.value = value;
52
+ this.next = void 0;
53
+ }
54
+ };
55
+ var Queue = class {
56
+ // TODO: Use private class fields when targeting Node.js 12.
57
+ // #_head;
58
+ // #_tail;
59
+ // #_size;
60
+ constructor() {
61
+ this.clear();
62
+ }
63
+ enqueue(value) {
64
+ const node = new Node(value);
65
+ if (this._head) {
66
+ this._tail.next = node;
67
+ this._tail = node;
68
+ } else {
69
+ this._head = node;
70
+ this._tail = node;
71
+ }
72
+ this._size++;
73
+ }
74
+ dequeue() {
75
+ const current = this._head;
76
+ if (!current) {
77
+ return;
78
+ }
79
+ this._head = this._head.next;
80
+ this._size--;
81
+ return current.value;
82
+ }
83
+ clear() {
84
+ this._head = void 0;
85
+ this._tail = void 0;
86
+ this._size = 0;
87
+ }
88
+ get size() {
89
+ return this._size;
90
+ }
91
+ *[Symbol.iterator]() {
92
+ let current = this._head;
93
+ while (current) {
94
+ yield current.value;
95
+ current = current.next;
96
+ }
97
+ }
98
+ };
99
+ module.exports = Queue;
100
+ }
101
+ });
102
+
103
+ // ../../node_modules/.pnpm/p-limit@3.1.0/node_modules/p-limit/index.js
104
+ var require_p_limit = __commonJS({
105
+ "../../node_modules/.pnpm/p-limit@3.1.0/node_modules/p-limit/index.js"(exports, module) {
106
+ "use strict";
107
+ init_emotion_jsx_shim();
108
+ var Queue = require_yocto_queue();
109
+ var pLimit2 = (concurrency) => {
110
+ if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
111
+ throw new TypeError("Expected `concurrency` to be a number from 1 and up");
112
+ }
113
+ const queue = new Queue();
114
+ let activeCount = 0;
115
+ const next = () => {
116
+ activeCount--;
117
+ if (queue.size > 0) {
118
+ queue.dequeue()();
119
+ }
120
+ };
121
+ const run = async (fn2, resolve, ...args) => {
122
+ activeCount++;
123
+ const result = (async () => fn2(...args))();
124
+ resolve(result);
125
+ try {
126
+ await result;
127
+ } catch (e) {
128
+ }
129
+ next();
130
+ };
131
+ const enqueue = (fn2, resolve, ...args) => {
132
+ queue.enqueue(run.bind(null, fn2, resolve, ...args));
133
+ (async () => {
134
+ await Promise.resolve();
135
+ if (activeCount < concurrency && queue.size > 0) {
136
+ queue.dequeue()();
137
+ }
138
+ })();
139
+ };
140
+ const generator = (fn2, ...args) => new Promise((resolve) => {
141
+ enqueue(fn2, resolve, ...args);
142
+ });
143
+ Object.defineProperties(generator, {
144
+ activeCount: {
145
+ get: () => activeCount
146
+ },
147
+ pendingCount: {
148
+ get: () => queue.size
149
+ },
150
+ clearQueue: {
151
+ value: () => {
152
+ queue.clear();
153
+ }
154
+ }
155
+ });
156
+ return generator;
157
+ };
158
+ module.exports = pLimit2;
159
+ }
160
+ });
161
+
162
+ // src/index.ts
163
+ init_emotion_jsx_shim();
10
164
 
11
165
  // src/assets/icons/index.ts
12
166
  var icons_exports = {};
@@ -25,8 +179,10 @@ __export(icons_exports, {
25
179
  MoreVerticalAlt: () => MoreVerticalAlt_default,
26
180
  Plus: () => Plus_default
27
181
  });
182
+ init_emotion_jsx_shim();
28
183
 
29
184
  // src/assets/icons/Caution.tsx
185
+ init_emotion_jsx_shim();
30
186
  import { jsx as jsx2 } from "@emotion/react/jsx-runtime";
31
187
  var SvgCaution = (props) => /* @__PURE__ */ jsx2(
32
188
  "svg",
@@ -49,6 +205,7 @@ var SvgCaution = (props) => /* @__PURE__ */ jsx2(
49
205
  var Caution_default = SvgCaution;
50
206
 
51
207
  // src/assets/icons/Checkmark.tsx
208
+ init_emotion_jsx_shim();
52
209
  import { jsx as jsx3 } from "@emotion/react/jsx-runtime";
53
210
  var SvgCheckmark = (props) => /* @__PURE__ */ jsx3(
54
211
  "svg",
@@ -72,11 +229,13 @@ var SvgCheckmark = (props) => /* @__PURE__ */ jsx3(
72
229
  var Checkmark_default = SvgCheckmark;
73
230
 
74
231
  // src/assets/icons/ChevronDown.tsx
232
+ init_emotion_jsx_shim();
75
233
  import { jsx as jsx4 } from "@emotion/react/jsx-runtime";
76
234
  var SvgChevronDown = (props) => /* @__PURE__ */ jsx4("svg", { viewBox: "0 0 24 24", width: "1em", height: "1em", ...props, children: /* @__PURE__ */ jsx4("path", { d: "M5.293 8.293a1 1 0 0 1 1.414 0L12 13.586l5.293-5.293a1 1 0 1 1 1.414 1.414l-6 6a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 0-1.414Z" }) });
77
235
  var ChevronDown_default = SvgChevronDown;
78
236
 
79
237
  // src/assets/icons/Close.tsx
238
+ init_emotion_jsx_shim();
80
239
  import { jsx as jsx5, jsxs } from "@emotion/react/jsx-runtime";
81
240
  var SvgClose = (props) => /* @__PURE__ */ jsx5(
82
241
  "svg",
@@ -96,6 +255,7 @@ var SvgClose = (props) => /* @__PURE__ */ jsx5(
96
255
  var Close_default = SvgClose;
97
256
 
98
257
  // src/assets/icons/Danger.tsx
258
+ init_emotion_jsx_shim();
99
259
  import { jsx as jsx6 } from "@emotion/react/jsx-runtime";
100
260
  var SvgDanger = (props) => /* @__PURE__ */ jsx6(
101
261
  "svg",
@@ -118,6 +278,7 @@ var SvgDanger = (props) => /* @__PURE__ */ jsx6(
118
278
  var Danger_default = SvgDanger;
119
279
 
120
280
  // src/assets/icons/ExclamationPoint.tsx
281
+ init_emotion_jsx_shim();
121
282
  import { jsx as jsx7 } from "@emotion/react/jsx-runtime";
122
283
  var SvgExclamationPoint = (props) => /* @__PURE__ */ jsx7(
123
284
  "svg",
@@ -140,6 +301,7 @@ var SvgExclamationPoint = (props) => /* @__PURE__ */ jsx7(
140
301
  var ExclamationPoint_default = SvgExclamationPoint;
141
302
 
142
303
  // src/assets/icons/Info.tsx
304
+ init_emotion_jsx_shim();
143
305
  import { jsx as jsx8, jsxs as jsxs2 } from "@emotion/react/jsx-runtime";
144
306
  var SvgInfo = (props) => /* @__PURE__ */ jsxs2("svg", { width: "1em", height: "1em", fill: "currentColor", ...props, children: [
145
307
  /* @__PURE__ */ jsx8(
@@ -162,6 +324,7 @@ var SvgInfo = (props) => /* @__PURE__ */ jsxs2("svg", { width: "1em", height: "1
162
324
  var Info_default = SvgInfo;
163
325
 
164
326
  // src/assets/icons/Lightbulb.tsx
327
+ init_emotion_jsx_shim();
165
328
  import { jsx as jsx9 } from "@emotion/react/jsx-runtime";
166
329
  var SvgLightbulb = (props) => /* @__PURE__ */ jsx9(
167
330
  "svg",
@@ -184,6 +347,7 @@ var SvgLightbulb = (props) => /* @__PURE__ */ jsx9(
184
347
  var Lightbulb_default = SvgLightbulb;
185
348
 
186
349
  // src/assets/icons/MagnifyingGlass.tsx
350
+ init_emotion_jsx_shim();
187
351
  import { jsx as jsx10, jsxs as jsxs3 } from "@emotion/react/jsx-runtime";
188
352
  var SvgMagnifyingGlass = (props) => /* @__PURE__ */ jsxs3(
189
353
  "svg",
@@ -206,6 +370,7 @@ var SvgMagnifyingGlass = (props) => /* @__PURE__ */ jsxs3(
206
370
  var MagnifyingGlass_default = SvgMagnifyingGlass;
207
371
 
208
372
  // src/assets/icons/MaximizeAlt.tsx
373
+ init_emotion_jsx_shim();
209
374
  import { jsx as jsx11 } from "@emotion/react/jsx-runtime";
210
375
  var SvgMaximizeAlt = (props) => /* @__PURE__ */ jsx11("svg", { width: "1em", height: "1em", fill: "currentColor", ...props, children: /* @__PURE__ */ jsx11(
211
376
  "path",
@@ -217,11 +382,13 @@ var SvgMaximizeAlt = (props) => /* @__PURE__ */ jsx11("svg", { width: "1em", hei
217
382
  var MaximizeAlt_default = SvgMaximizeAlt;
218
383
 
219
384
  // src/assets/icons/Minus.tsx
385
+ init_emotion_jsx_shim();
220
386
  import { jsx as jsx12 } from "@emotion/react/jsx-runtime";
221
387
  var SvgMinus = (props) => /* @__PURE__ */ jsx12("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx12("path", { d: "M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z", fill: "currentColor" }) });
222
388
  var Minus_default = SvgMinus;
223
389
 
224
390
  // src/assets/icons/MoreVerticalAlt.tsx
391
+ init_emotion_jsx_shim();
225
392
  import { jsx as jsx13 } from "@emotion/react/jsx-runtime";
226
393
  var SvgMoreVerticalAlt = (props) => /* @__PURE__ */ jsx13("svg", { width: "1em", height: "1em", fill: "currentColor", ...props, children: /* @__PURE__ */ jsx13(
227
394
  "path",
@@ -233,6 +400,7 @@ var SvgMoreVerticalAlt = (props) => /* @__PURE__ */ jsx13("svg", { width: "1em",
233
400
  var MoreVerticalAlt_default = SvgMoreVerticalAlt;
234
401
 
235
402
  // src/assets/icons/Plus.tsx
403
+ init_emotion_jsx_shim();
236
404
  import { jsx as jsx14 } from "@emotion/react/jsx-runtime";
237
405
  var SvgPlus = (props) => /* @__PURE__ */ jsx14(
238
406
  "svg",
@@ -249,10 +417,12 @@ var SvgPlus = (props) => /* @__PURE__ */ jsx14(
249
417
  var Plus_default = SvgPlus;
250
418
 
251
419
  // src/components/commerce/ProductPreviewList.tsx
420
+ init_emotion_jsx_shim();
252
421
  import { css as css5 } from "@emotion/react";
253
422
  import { scrollbarStyles } from "@uniformdev/design-system";
254
423
 
255
424
  // src/components/Image/Image.tsx
425
+ init_emotion_jsx_shim();
256
426
  import { jsx as jsx15 } from "@emotion/react/jsx-runtime";
257
427
  function Image({ src, alt, className }) {
258
428
  const CompImage = src && typeof src !== "string" ? src : null;
@@ -260,17 +430,20 @@ function Image({ src, alt, className }) {
260
430
  }
261
431
 
262
432
  // src/components/commerce/ProductQuery.tsx
433
+ init_emotion_jsx_shim();
263
434
  import { css as css3 } from "@emotion/react";
264
435
  import { Input, InputSelect as InputSelect2, mq } from "@uniformdev/design-system";
265
436
  import React2, { useContext, useMemo } from "react";
266
437
  import { useAsyncFn, useDebounce } from "react-use";
267
438
 
268
439
  // src/components/commerce/SelectionField.tsx
440
+ init_emotion_jsx_shim();
269
441
  import { css as css2 } from "@emotion/react";
270
442
  import { Icon, InputSelect } from "@uniformdev/design-system";
271
443
  import { CgClose } from "react-icons/cg";
272
444
 
273
445
  // src/components/commerce/ResolvableLoadingValue.tsx
446
+ init_emotion_jsx_shim();
274
447
  import { Fragment, jsxs as jsxs4 } from "@emotion/react/jsx-runtime";
275
448
  var ResolvableLoadingValue = ({
276
449
  value,
@@ -287,6 +460,7 @@ var ResolvableLoadingValue = ({
287
460
  };
288
461
 
289
462
  // src/components/commerce/styles/SelectField.styles.ts
463
+ init_emotion_jsx_shim();
290
464
  import { css } from "@emotion/react";
291
465
  var selectionFieldBtnContainer = css`
292
466
  align-items: center;
@@ -798,6 +972,7 @@ var useProductQueryContext = () => {
798
972
  };
799
973
 
800
974
  // src/components/commerce/styles/ProductPreviewList.styles.ts
975
+ init_emotion_jsx_shim();
801
976
  import { css as css4 } from "@emotion/react";
802
977
  var productPreviewListLinkBtn = css4`
803
978
  align-items: center;
@@ -951,16 +1126,19 @@ var ProductPreviewList = ({
951
1126
  };
952
1127
 
953
1128
  // src/components/commerce/ProductSearch.tsx
1129
+ init_emotion_jsx_shim();
954
1130
  import { Callout as Callout2 } from "@uniformdev/design-system";
955
1131
  import React6, { useContext as useContext2, useMemo as useMemo2, useRef as useRef5 } from "react";
956
1132
  import { useAsync, useAsyncFn as useAsyncFn2 } from "react-use";
957
1133
 
958
1134
  // src/components/legacy/EntrySearch/DefaultSearchRow.tsx
1135
+ init_emotion_jsx_shim();
959
1136
  import { css as css7 } from "@emotion/react";
960
1137
  import { useOutsideClick } from "@uniformdev/design-system";
961
1138
  import { useRef, useState } from "react";
962
1139
 
963
1140
  // src/components/legacy/EntrySearch/styles/DefaultSearchRow.styles.ts
1141
+ init_emotion_jsx_shim();
964
1142
  import { css as css6 } from "@emotion/react";
965
1143
  var searchRowContainer = css6`
966
1144
  cursor: pointer;
@@ -1076,6 +1254,7 @@ var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
1076
1254
  };
1077
1255
 
1078
1256
  // src/components/legacy/EntrySearch/DefaultSelectedItem.tsx
1257
+ init_emotion_jsx_shim();
1079
1258
  import { css as css9 } from "@emotion/react";
1080
1259
  import { Icon as Icon2, useOutsideClick as useOutsideClick2 } from "@uniformdev/design-system";
1081
1260
  import { useEffect, useRef as useRef2, useState as useState2 } from "react";
@@ -1083,6 +1262,7 @@ import { CgClose as CgClose2, CgInfo } from "react-icons/cg";
1083
1262
  import { format as timeAgo } from "timeago.js";
1084
1263
 
1085
1264
  // src/utils/openWindowWithCloseCallback.ts
1265
+ init_emotion_jsx_shim();
1086
1266
  function openWindowWithCloseCallback(href, callback) {
1087
1267
  const openedNewWindow = window.open(href, "_blank");
1088
1268
  const interval = setInterval(() => {
@@ -1094,6 +1274,7 @@ function openWindowWithCloseCallback(href, callback) {
1094
1274
  }
1095
1275
 
1096
1276
  // src/components/legacy/EntrySearch/styles/DefaultSelectedItem.styles.ts
1277
+ init_emotion_jsx_shim();
1097
1278
  import { css as css8 } from "@emotion/react";
1098
1279
  import { mq as mq2 } from "@uniformdev/design-system";
1099
1280
  var selectedItemContainer = css8`
@@ -1361,6 +1542,7 @@ var DefaultSelectedItem = ({
1361
1542
  };
1362
1543
 
1363
1544
  // src/components/legacy/EntrySearch/EntrySearch.tsx
1545
+ init_emotion_jsx_shim();
1364
1546
  import { css as css11 } from "@emotion/react";
1365
1547
  import {
1366
1548
  Button,
@@ -1379,6 +1561,7 @@ import { useDebounce as useDebounce2 } from "react-use";
1379
1561
  import { v4 } from "uuid";
1380
1562
 
1381
1563
  // src/hooks/useLoadingDelay.ts
1564
+ init_emotion_jsx_shim();
1382
1565
  import { useEffect as useEffect2, useRef as useRef3, useState as useState3 } from "react";
1383
1566
  function useLoadingDelay(loading, { delay = 500, minDuration = 200 } = {
1384
1567
  delay: 500,
@@ -1412,6 +1595,7 @@ function useLoadingDelay(loading, { delay = 500, minDuration = 200 } = {
1412
1595
  }
1413
1596
 
1414
1597
  // src/components/legacy/EntrySearch/styles/EntrySearch.styles.ts
1598
+ init_emotion_jsx_shim();
1415
1599
  import { css as css10 } from "@emotion/react";
1416
1600
  var entrySearchWrapper = css10`
1417
1601
  background: var(--white);
@@ -1930,9 +2114,11 @@ var EntrySearch = ({
1930
2114
  };
1931
2115
 
1932
2116
  // src/components/commerce/ProductSearchRow.tsx
2117
+ init_emotion_jsx_shim();
1933
2118
  import { css as css13 } from "@emotion/react";
1934
2119
 
1935
2120
  // src/components/commerce/styles/ProductSearchRow.styles.ts
2121
+ init_emotion_jsx_shim();
1936
2122
  import { css as css12 } from "@emotion/react";
1937
2123
  var productSearchRowContainer = css12`
1938
2124
  cursor: pointer;
@@ -2036,11 +2222,13 @@ function ProductSearchRow({
2036
2222
  }
2037
2223
 
2038
2224
  // src/components/commerce/ProductSelectedItem.tsx
2225
+ init_emotion_jsx_shim();
2039
2226
  import { css as css15 } from "@emotion/react";
2040
2227
  import { Icon as Icon3, mq as mq4 } from "@uniformdev/design-system";
2041
2228
  import { CgClose as CgClose3 } from "react-icons/cg";
2042
2229
 
2043
2230
  // src/components/commerce/styles/ProductSelectedItem.styles.ts
2231
+ init_emotion_jsx_shim();
2044
2232
  import { css as css14 } from "@emotion/react";
2045
2233
  import { mq as mq3 } from "@uniformdev/design-system";
2046
2234
  var productSelectedItemContainer = css14`
@@ -2348,6 +2536,7 @@ var useProductSearchContext = () => {
2348
2536
  };
2349
2537
 
2350
2538
  // src/components/dam/DamSelectedItem.tsx
2539
+ init_emotion_jsx_shim();
2351
2540
  import { css as css17 } from "@emotion/react";
2352
2541
  import { Icon as Icon4 } from "@uniformdev/design-system";
2353
2542
  import { useEffect as useEffect4, useRef as useRef6, useState as useState5 } from "react";
@@ -2355,6 +2544,7 @@ import { CgClose as CgClose4, CgInfo as CgInfo2 } from "react-icons/cg";
2355
2544
  import { format as timeAgo2 } from "timeago.js";
2356
2545
 
2357
2546
  // src/components/dam/DamSelectedItem.styles.ts
2547
+ init_emotion_jsx_shim();
2358
2548
  import { css as css16 } from "@emotion/react";
2359
2549
  import { mq as mq5 } from "@uniformdev/design-system";
2360
2550
  var damSelectedItemContainer = css16`
@@ -2641,13 +2831,22 @@ function DefaultDamItemRenderer({ item }) {
2641
2831
  ] }) : null;
2642
2832
  }
2643
2833
 
2834
+ // src/components/DataResourceDynamicInputProvider.tsx
2835
+ init_emotion_jsx_shim();
2836
+
2644
2837
  // src/hooks/useMeshLocation.ts
2838
+ init_emotion_jsx_shim();
2645
2839
  import { useMemo as useMemo4, useRef as useRef7 } from "react";
2646
2840
 
2647
2841
  // src/components/UniformMeshLocationContext.tsx
2842
+ init_emotion_jsx_shim();
2648
2843
  import { createContext as createContext2, useContext as useContext4, useMemo as useMemo3, useState as useState6 } from "react";
2649
2844
 
2845
+ // src/hooks/useUniformMeshSdk.ts
2846
+ init_emotion_jsx_shim();
2847
+
2650
2848
  // src/components/UniformMeshSdkContext.tsx
2849
+ init_emotion_jsx_shim();
2651
2850
  import { Theme } from "@uniformdev/design-system";
2652
2851
  import { createContext, useContext as useContext3 } from "react";
2653
2852
  import { jsx as jsx26, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
@@ -2721,16 +2920,19 @@ function useMeshLocation(expectedLocation) {
2721
2920
  }
2722
2921
 
2723
2922
  // src/components/Variables/InputVariables.tsx
2923
+ init_emotion_jsx_shim();
2724
2924
  import { Caption, ErrorMessage, InfoMessage, Input as Input3, WarningMessage } from "@uniformdev/design-system";
2725
2925
  import * as React11 from "react";
2726
2926
  import { v4 as v42 } from "uuid";
2727
2927
 
2728
2928
  // src/components/Variables/SelectVariableMenu.tsx
2929
+ init_emotion_jsx_shim();
2729
2930
  import { Menu as Menu2, MenuItem as MenuItem2, MenuItemSeparator } from "@uniformdev/design-system";
2730
2931
  import { useEffect as useEffect6, useRef as useRef8, useState as useState8 } from "react";
2731
2932
  import { CgUsbC } from "react-icons/cg";
2732
2933
 
2733
2934
  // src/components/Variables/styles/InsertVariableMenu.styles.ts
2935
+ init_emotion_jsx_shim();
2734
2936
  import { css as css18 } from "@emotion/react";
2735
2937
  var menuBtn = css18`
2736
2938
  background: none;
@@ -2753,19 +2955,23 @@ var variablesTipText = css18`
2753
2955
  `;
2754
2956
 
2755
2957
  // src/components/Variables/useOnVariableUpdated.ts
2958
+ init_emotion_jsx_shim();
2756
2959
  import { useEffect as useEffect5 } from "react";
2757
2960
 
2758
2961
  // src/components/Variables/VariablesProvider.tsx
2962
+ init_emotion_jsx_shim();
2759
2963
  import mitt from "mitt";
2760
2964
  import * as React10 from "react";
2761
2965
 
2762
2966
  // src/components/Variables/VariableEditor.tsx
2967
+ init_emotion_jsx_shim();
2763
2968
  import { zodResolver } from "@hookform/resolvers/zod";
2764
2969
  import { Button as Button2, Callout as Callout3, Input as Input2, useShortcut } from "@uniformdev/design-system";
2765
2970
  import { useForm } from "react-hook-form";
2766
2971
  import { z } from "zod";
2767
2972
 
2768
2973
  // src/components/Variables/styles/VariableEditor.styles.ts
2974
+ init_emotion_jsx_shim();
2769
2975
  import { css as css19 } from "@emotion/react";
2770
2976
  var variablesFormContainer = css19`
2771
2977
  > * {
@@ -2961,6 +3167,7 @@ function useOnVariableUpdated(fn2, disabled) {
2961
3167
  }
2962
3168
 
2963
3169
  // src/components/Variables/variablesToList.ts
3170
+ init_emotion_jsx_shim();
2964
3171
  function variablesToList(variables) {
2965
3172
  return Object.entries(variables || {}).sort(([aKey, a2], [bKey, b2]) => {
2966
3173
  var _a, _b;
@@ -3059,6 +3266,7 @@ var SelectVariableMenu = ({
3059
3266
  };
3060
3267
 
3061
3268
  // src/components/Variables/styles/InputVariables.styles.ts
3269
+ init_emotion_jsx_shim();
3062
3270
  import { css as css20 } from "@emotion/react";
3063
3271
  var menuContainer = css20`
3064
3272
  position: relative;
@@ -3069,7 +3277,11 @@ var menuBtn2 = css20`
3069
3277
  right: var(--spacing-sm);
3070
3278
  `;
3071
3279
 
3280
+ // src/components/Variables/util/getReferencedVariables.ts
3281
+ init_emotion_jsx_shim();
3282
+
3072
3283
  // src/components/Variables/util/variableExpression.ts
3284
+ init_emotion_jsx_shim();
3073
3285
  var variableExpression = /(?<!\\)\${([^}]+)}/g;
3074
3286
  var variablePrefix = "${";
3075
3287
  var variableSuffix = "}";
@@ -3084,6 +3296,7 @@ function getReferencedVariables(value) {
3084
3296
  }
3085
3297
 
3086
3298
  // src/components/Variables/util/insertVariableIntoText.ts
3299
+ init_emotion_jsx_shim();
3087
3300
  function insertVariableIntoText({
3088
3301
  variableName: variableName2,
3089
3302
  value,
@@ -3107,7 +3320,11 @@ function insertVariableIntoText({
3107
3320
  return `${value}${variableExpression2}`;
3108
3321
  }
3109
3322
 
3323
+ // src/components/Variables/VariableField.tsx
3324
+ init_emotion_jsx_shim();
3325
+
3110
3326
  // src/components/Variables/styles/VariableField.styles.ts
3327
+ init_emotion_jsx_shim();
3111
3328
  import { css as css21 } from "@emotion/react";
3112
3329
  var labelText = css21`
3113
3330
  align-items: center;
@@ -3299,6 +3516,7 @@ function InputVariablesShell({
3299
3516
  }
3300
3517
 
3301
3518
  // src/components/Variables/VariablesList.tsx
3519
+ init_emotion_jsx_shim();
3302
3520
  import { css as css23 } from "@emotion/react";
3303
3521
  import {
3304
3522
  AddListButton,
@@ -3314,6 +3532,7 @@ import {
3314
3532
  import { DragDropContext as DragDropContext2, Draggable as Draggable2, Droppable as Droppable2 } from "react-beautiful-dnd";
3315
3533
 
3316
3534
  // src/components/Variables/styles/VariablesList.styles.ts
3535
+ init_emotion_jsx_shim();
3317
3536
  import { css as css22 } from "@emotion/react";
3318
3537
  var tableRow = (isDragging) => css22`
3319
3538
  position: relative;
@@ -3508,6 +3727,7 @@ function convertDynamicInputsToVariables(dynamicInputs) {
3508
3727
  }
3509
3728
 
3510
3729
  // src/components/DataResourceVariablesList.tsx
3730
+ init_emotion_jsx_shim();
3511
3731
  import { Callout as Callout4 } from "@uniformdev/design-system";
3512
3732
  import { jsx as jsx35 } from "@emotion/react/jsx-runtime";
3513
3733
  function DataResourceVariablesList(props) {
@@ -3577,12 +3797,17 @@ function TextVariableRenderer({ definition, value, setValue }) {
3577
3797
  ) });
3578
3798
  }
3579
3799
 
3800
+ // src/components/DataSourceEditor.tsx
3801
+ init_emotion_jsx_shim();
3802
+
3580
3803
  // src/components/Request/RequestBody.tsx
3804
+ init_emotion_jsx_shim();
3581
3805
  import { css as css25 } from "@emotion/react";
3582
3806
  import { InputSelect as InputSelect4, JsonEditor } from "@uniformdev/design-system";
3583
3807
  import { useState as useState10 } from "react";
3584
3808
 
3585
3809
  // src/components/Request/RequestProvider.tsx
3810
+ init_emotion_jsx_shim();
3586
3811
  import * as React12 from "react";
3587
3812
  import { jsx as jsx36 } from "@emotion/react/jsx-runtime";
3588
3813
  var RequestContext = React12.createContext(null);
@@ -3663,7 +3888,11 @@ function useRequest() {
3663
3888
  return context;
3664
3889
  }
3665
3890
 
3891
+ // src/components/Request/RequestTypeContainer.tsx
3892
+ init_emotion_jsx_shim();
3893
+
3666
3894
  // src/components/Request/styles/Request.styles.ts
3895
+ init_emotion_jsx_shim();
3667
3896
  import { css as css24 } from "@emotion/react";
3668
3897
  var innerContentStyles = css24`
3669
3898
  background: var(--white);
@@ -3762,6 +3991,7 @@ function RequestBody() {
3762
3991
  }
3763
3992
 
3764
3993
  // src/components/Request/RequestHeaders.tsx
3994
+ init_emotion_jsx_shim();
3765
3995
  import {
3766
3996
  Input as Input4,
3767
3997
  Table as Table2,
@@ -3846,6 +4076,7 @@ function RequestHeaders({ disableVariables }) {
3846
4076
  }
3847
4077
 
3848
4078
  // src/components/Request/RequestMethodSelect.tsx
4079
+ init_emotion_jsx_shim();
3849
4080
  import { InputSelect as InputSelect5 } from "@uniformdev/design-system";
3850
4081
  import { jsx as jsx40 } from "@emotion/react/jsx-runtime";
3851
4082
  function RequestMethodSelect(props) {
@@ -3867,6 +4098,7 @@ function RequestMethodSelect(props) {
3867
4098
  }
3868
4099
 
3869
4100
  // src/components/Request/RequestParameters.tsx
4101
+ init_emotion_jsx_shim();
3870
4102
  import {
3871
4103
  Input as Input5,
3872
4104
  Table as Table3,
@@ -3955,10 +4187,12 @@ function RequestParameters({ disableVariables }) {
3955
4187
  }
3956
4188
 
3957
4189
  // src/components/Request/RequestUrl.tsx
4190
+ init_emotion_jsx_shim();
3958
4191
  import { css as css26 } from "@emotion/react";
3959
4192
  import { useMemo as useMemo7 } from "react";
3960
4193
 
3961
4194
  // src/components/Request/urlEncodeRequestParameter.ts
4195
+ init_emotion_jsx_shim();
3962
4196
  function urlEncodeRequestUrl(url, varValues) {
3963
4197
  return decodeVariablesInUrlEncodedString(encodeURI(url), varValues);
3964
4198
  }
@@ -4019,7 +4253,11 @@ function RequestUrl() {
4019
4253
  );
4020
4254
  }
4021
4255
 
4256
+ // src/components/Request/RequestUrlInput.tsx
4257
+ init_emotion_jsx_shim();
4258
+
4022
4259
  // src/components/Request/util/handlePastedUrl.ts
4260
+ init_emotion_jsx_shim();
4023
4261
  function handlePastedUrl(value, currentRequest, dispatch) {
4024
4262
  var _a, _b, _c;
4025
4263
  const indexOfQueryString = value.indexOf("?");
@@ -4066,6 +4304,7 @@ function RequestUrlInput(props) {
4066
4304
  }
4067
4305
 
4068
4306
  // src/components/Request/useRequestHeader.ts
4307
+ init_emotion_jsx_shim();
4069
4308
  function useRequestHeader(headerName) {
4070
4309
  var _a, _b;
4071
4310
  const { request, dispatch } = useRequest();
@@ -4083,6 +4322,7 @@ function useRequestHeader(headerName) {
4083
4322
  }
4084
4323
 
4085
4324
  // src/components/Request/useRequestParameter.ts
4325
+ init_emotion_jsx_shim();
4086
4326
  function useRequestParameter(paramName) {
4087
4327
  var _a, _b;
4088
4328
  const { request, dispatch } = useRequest();
@@ -4148,6 +4388,7 @@ function convertRequestDataToDataSource(dataSource, requestData) {
4148
4388
  }
4149
4389
 
4150
4390
  // src/components/DataTypeEditor.tsx
4391
+ init_emotion_jsx_shim();
4151
4392
  import { jsx as jsx45 } from "@emotion/react/jsx-runtime";
4152
4393
  function DataTypeEditor({ onChange, children, editVariableComponent }) {
4153
4394
  var _a;
@@ -4208,9 +4449,11 @@ function convertRequestDataToDataType(dataType, requestData) {
4208
4449
  }
4209
4450
 
4210
4451
  // src/components/MeshApp.tsx
4452
+ init_emotion_jsx_shim();
4211
4453
  import { LoadingIndicator as LoadingIndicator2, Theme as Theme2 } from "@uniformdev/design-system";
4212
4454
 
4213
4455
  // src/hooks/useInitializeUniformMeshSdk.ts
4456
+ init_emotion_jsx_shim();
4214
4457
  import { initializeUniformMeshSDK } from "@uniformdev/mesh-sdk";
4215
4458
  import { useEffect as useEffect8, useRef as useRef10, useState as useState11 } from "react";
4216
4459
  var useInitializeUniformMeshSdk = ({ autoResizingDisabled } = {}) => {
@@ -4275,6 +4518,7 @@ var MeshApp = ({
4275
4518
  };
4276
4519
 
4277
4520
  // src/components/ObjectSearch/DataRefreshButton.tsx
4521
+ init_emotion_jsx_shim();
4278
4522
  import { css as css27 } from "@emotion/react";
4279
4523
  import { Button as Button3, LoadingIndicator as LoadingIndicator3 } from "@uniformdev/design-system";
4280
4524
  import { jsx as jsx47, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
@@ -4297,7 +4541,15 @@ var DataRefreshButton = ({
4297
4541
  ] });
4298
4542
  };
4299
4543
 
4544
+ // src/components/ObjectSearch/ObjectSearchContainer.tsx
4545
+ init_emotion_jsx_shim();
4546
+
4547
+ // ../canvas/dist/index.mjs
4548
+ init_emotion_jsx_shim();
4549
+
4300
4550
  // ../context/dist/api/api.mjs
4551
+ init_emotion_jsx_shim();
4552
+ var import_p_limit = __toESM(require_p_limit(), 1);
4301
4553
  var __defProp2 = Object.defineProperty;
4302
4554
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4303
4555
  var __publicField = (obj, key, value) => {
@@ -4317,7 +4569,7 @@ var __privateAdd = (obj, member, value) => {
4317
4569
  throw TypeError("Cannot add the same private member more than once");
4318
4570
  member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
4319
4571
  };
4320
- var nullLimitPolicy = async (func) => await func();
4572
+ var defaultLimitPolicy = (0, import_p_limit.default)(6);
4321
4573
  var ApiClientError = class extends Error {
4322
4574
  constructor(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId) {
4323
4575
  super(
@@ -4357,7 +4609,7 @@ var ApiClient = class {
4357
4609
  apiKey: (_a = options.apiKey) != null ? _a : null,
4358
4610
  projectId: (_b = options.projectId) != null ? _b : null,
4359
4611
  bearerToken: (_c = options.bearerToken) != null ? _c : null,
4360
- limitPolicy: (_d = options.limitPolicy) != null ? _d : nullLimitPolicy,
4612
+ limitPolicy: (_d = options.limitPolicy) != null ? _d : defaultLimitPolicy,
4361
4613
  bypassCache: (_e = options.bypassCache) != null ? _e : false
4362
4614
  };
4363
4615
  }
@@ -4702,6 +4954,7 @@ _url7 = /* @__PURE__ */ new WeakMap();
4702
4954
  __privateAdd(TestClient, _url7, "/api/v2/test");
4703
4955
 
4704
4956
  // ../../node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.esm.mjs
4957
+ init_emotion_jsx_shim();
4705
4958
  function n(n2) {
4706
4959
  for (var r2 = arguments.length, t2 = Array(r2 > 1 ? r2 - 1 : 0), e = 1; e < r2; e++)
4707
4960
  t2[e - 1] = arguments[e];
@@ -5085,24 +5338,24 @@ var ln = an.createDraft.bind(an);
5085
5338
  var dn = an.finishDraft.bind(an);
5086
5339
 
5087
5340
  // ../canvas/dist/index.mjs
5088
- var __create = Object.create;
5341
+ var __create2 = Object.create;
5089
5342
  var __defProp3 = Object.defineProperty;
5090
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5091
- var __getOwnPropNames = Object.getOwnPropertyNames;
5092
- var __getProtoOf = Object.getPrototypeOf;
5093
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5094
- var __commonJS = (cb, mod) => function __require() {
5095
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5343
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
5344
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
5345
+ var __getProtoOf2 = Object.getPrototypeOf;
5346
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
5347
+ var __commonJS2 = (cb, mod) => function __require() {
5348
+ return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5096
5349
  };
5097
- var __copyProps = (to, from, except, desc) => {
5350
+ var __copyProps2 = (to, from, except, desc) => {
5098
5351
  if (from && typeof from === "object" || typeof from === "function") {
5099
- for (let key of __getOwnPropNames(from))
5100
- if (!__hasOwnProp.call(to, key) && key !== except)
5101
- __defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5352
+ for (let key of __getOwnPropNames2(from))
5353
+ if (!__hasOwnProp2.call(to, key) && key !== except)
5354
+ __defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
5102
5355
  }
5103
5356
  return to;
5104
5357
  };
5105
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5358
+ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
5106
5359
  // If the importer is in node compatibility mode or this is not an ESM
5107
5360
  // file that has been converted to a CommonJS file using a Babel-
5108
5361
  // compatible transform (i.e. "__esModule" has not been set), then set
@@ -5123,7 +5376,7 @@ var __privateAdd2 = (obj, member, value) => {
5123
5376
  throw TypeError("Cannot add the same private member more than once");
5124
5377
  member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
5125
5378
  };
5126
- var require_retry_operation = __commonJS({
5379
+ var require_retry_operation = __commonJS2({
5127
5380
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js"(exports, module) {
5128
5381
  function RetryOperation(timeouts, options) {
5129
5382
  if (typeof options === "boolean") {
@@ -5256,7 +5509,7 @@ var require_retry_operation = __commonJS({
5256
5509
  };
5257
5510
  }
5258
5511
  });
5259
- var require_retry = __commonJS({
5512
+ var require_retry = __commonJS2({
5260
5513
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry.js"(exports) {
5261
5514
  var RetryOperation = require_retry_operation();
5262
5515
  exports.operation = function(options) {
@@ -5340,12 +5593,12 @@ var require_retry = __commonJS({
5340
5593
  };
5341
5594
  }
5342
5595
  });
5343
- var require_retry2 = __commonJS({
5596
+ var require_retry2 = __commonJS2({
5344
5597
  "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/index.js"(exports, module) {
5345
5598
  module.exports = require_retry();
5346
5599
  }
5347
5600
  });
5348
- var import_retry = __toESM(require_retry2(), 1);
5601
+ var import_retry = __toESM2(require_retry2(), 1);
5349
5602
  var _url8;
5350
5603
  var _DataTypeClient = class extends ApiClient {
5351
5604
  constructor(options) {
@@ -5454,6 +5707,7 @@ function bindVariablesToObjectRecursive({
5454
5707
  import { Container, IconsProvider, ScrollableList, VerticalRhythm } from "@uniformdev/design-system";
5455
5708
 
5456
5709
  // src/components/ObjectSearch/hooks/ObjectSearchContext.tsx
5710
+ init_emotion_jsx_shim();
5457
5711
  import {
5458
5712
  createContext as createContext5,
5459
5713
  useCallback,
@@ -5620,10 +5874,12 @@ var ObjectSearchContainer = ({
5620
5874
  };
5621
5875
 
5622
5876
  // src/components/ObjectSearch/ObjectSearchFilter.tsx
5877
+ init_emotion_jsx_shim();
5623
5878
  import { InputKeywordSearch as InputKeywordSearch2, InputSelect as InputSelect6 } from "@uniformdev/design-system";
5624
5879
  import { useState as useState13 } from "react";
5625
5880
 
5626
5881
  // src/components/ObjectSearch/styles/ObjectSearchFilterContainer.styles.ts
5882
+ init_emotion_jsx_shim();
5627
5883
  import { css as css28 } from "@emotion/react";
5628
5884
  var ObjectSearchFilterContainerLabel = css28`
5629
5885
  align-items: center;
@@ -5699,6 +5955,7 @@ var ObjectSearchFilter = ({
5699
5955
  };
5700
5956
 
5701
5957
  // src/components/ObjectSearch/ObjectSearchFilterContainer.tsx
5958
+ init_emotion_jsx_shim();
5702
5959
  import { jsx as jsx51, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
5703
5960
  var ObjectSearchFilterContainer2 = ({ label, children }) => {
5704
5961
  return /* @__PURE__ */ jsxs30("div", { children: [
@@ -5708,9 +5965,11 @@ var ObjectSearchFilterContainer2 = ({ label, children }) => {
5708
5965
  };
5709
5966
 
5710
5967
  // src/components/ObjectSearch/ObjectSearchListItem.tsx
5968
+ init_emotion_jsx_shim();
5711
5969
  import { Popover } from "@uniformdev/design-system";
5712
5970
 
5713
5971
  // src/components/ObjectSearch/styles/ObjectSearchListItem.styles.ts
5972
+ init_emotion_jsx_shim();
5714
5973
  import { css as css29 } from "@emotion/react";
5715
5974
  import { skeletonLoading } from "@uniformdev/design-system";
5716
5975
  var ObjectListItemContainer = css29`
@@ -5820,10 +6079,15 @@ var ObjectSearchListItemLoadingSkeleton = () => {
5820
6079
  };
5821
6080
 
5822
6081
  // src/components/ObjectSearch/ObjectSearchResultItem.tsx
6082
+ init_emotion_jsx_shim();
5823
6083
  import { Badge, Button as Button4, Popover as Popover2 } from "@uniformdev/design-system";
5824
6084
  import { format as timeagoFormat } from "timeago.js";
5825
6085
 
6086
+ // src/components/ObjectSearch/ObjectSearchResultItemButton.tsx
6087
+ init_emotion_jsx_shim();
6088
+
5826
6089
  // src/components/ObjectSearch/styles/ObjectSearchResultItemButton.styles.ts
6090
+ init_emotion_jsx_shim();
5827
6091
  import { css as css30 } from "@emotion/react";
5828
6092
  import { button as button2 } from "@uniformdev/design-system";
5829
6093
  var ButtonStyles = css30`
@@ -5882,6 +6146,7 @@ var LinkButton = ({
5882
6146
  };
5883
6147
 
5884
6148
  // src/components/ObjectSearch/styles/ObjectSearchResultItem.styles.ts
6149
+ init_emotion_jsx_shim();
5885
6150
  import { css as css31 } from "@emotion/react";
5886
6151
  var ObjectSearchResultItemContainer = css31`
5887
6152
  align-items: center;
@@ -6000,10 +6265,12 @@ var ObjectSearchResultItem = ({
6000
6265
  };
6001
6266
 
6002
6267
  // src/components/ObjectSearch/ObjectSearchResultList.tsx
6268
+ init_emotion_jsx_shim();
6003
6269
  import { Button as Button5, Counter } from "@uniformdev/design-system";
6004
6270
  import { DragDropContext as DragDropContext3, Draggable as Draggable3, Droppable as Droppable3 } from "react-beautiful-dnd";
6005
6271
 
6006
6272
  // src/components/ObjectSearch/styles/ObjectSearchResultList.styles.ts
6273
+ init_emotion_jsx_shim();
6007
6274
  import { css as css32 } from "@emotion/react";
6008
6275
  var ObjectSearchResultListContainer = css32`
6009
6276
  align-items: center;
@@ -6094,6 +6361,7 @@ function ObjectSearchResultList({
6094
6361
  }
6095
6362
 
6096
6363
  // src/components/ObjectSearch/QueryFilter.tsx
6364
+ init_emotion_jsx_shim();
6097
6365
  import { Input as Input6, InputKeywordSearch as InputKeywordSearch3, InputSelect as InputSelect7, VerticalRhythm as VerticalRhythm2 } from "@uniformdev/design-system";
6098
6366
  import { useEffect as useEffect9, useState as useState14 } from "react";
6099
6367
  import { jsx as jsx56, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
@@ -6281,9 +6549,11 @@ var QueryFilter = ({
6281
6549
  };
6282
6550
 
6283
6551
  // src/hooks/index.ts
6552
+ init_emotion_jsx_shim();
6284
6553
  import { ParameterShellContext, useParameterShell } from "@uniformdev/design-system";
6285
6554
 
6286
6555
  // src/utils/createLocationValidator.ts
6556
+ init_emotion_jsx_shim();
6287
6557
  function createLocationValidator(setValue, validate) {
6288
6558
  return (dispatch) => setValue((previous) => {
6289
6559
  const { newValue, options } = dispatch(previous);