@uniformdev/mesh-sdk-react 18.34.1-alpha.57 → 18.35.1-alpha.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -50,7 +50,6 @@ __export(src_exports, {
50
50
  InputSelect: () => import_design_system34.InputSelect,
51
51
  InputToggle: () => import_design_system34.InputToggle,
52
52
  InputVariables: () => InputVariables,
53
- KeywordSearchInput: () => import_design_system34.InputKeywordSearch,
54
53
  Label: () => import_design_system34.Label,
55
54
  LinkButton: () => LinkButton,
56
55
  LoadingIndicator: () => import_design_system34.LoadingIndicator,
@@ -106,10 +105,6 @@ __export(src_exports, {
106
105
  TextVariableRenderer: () => TextVariableRenderer,
107
106
  Textarea: () => import_design_system34.Textarea,
108
107
  Theme: () => import_design_system34.Theme,
109
- UniformMeshLocationContext: () => UniformMeshLocationContext,
110
- UniformMeshLocationContextProvider: () => UniformMeshLocationContextProvider,
111
- UniformMeshSdkContext: () => UniformMeshSdkContext,
112
- UniformMeshSdkContextProvider: () => UniformMeshSdkContextProvider,
113
108
  VariableEditor: () => VariableEditor,
114
109
  VariablesList: () => VariablesList,
115
110
  VariablesProvider: () => VariablesProvider,
@@ -178,7 +173,6 @@ __export(src_exports, {
178
173
  selectedItemTitle: () => selectedItemTitle,
179
174
  urlEncodeRequestParameter: () => urlEncodeRequestParameter,
180
175
  urlEncodeRequestUrl: () => urlEncodeRequestUrl,
181
- useInitializeUniformMeshSdk: () => useInitializeUniformMeshSdk,
182
176
  useMeshLocation: () => useMeshLocation,
183
177
  useObjectSearchContext: () => useObjectSearchContext,
184
178
  useParameterShell: () => import_design_system33.useParameterShell,
@@ -187,10 +181,7 @@ __export(src_exports, {
187
181
  useRequest: () => useRequest,
188
182
  useRequestHeader: () => useRequestHeader,
189
183
  useRequestParameter: () => useRequestParameter,
190
- useUniformMeshLocation: () => useUniformMeshLocation,
191
- useUniformMeshLocationContext: () => useUniformMeshLocationContext,
192
184
  useUniformMeshSdk: () => useUniformMeshSdk,
193
- useUniformMeshSdkContext: () => useUniformMeshSdkContext,
194
185
  useVariables: () => useVariables,
195
186
  variablesToList: () => variablesToList
196
187
  });
@@ -1085,7 +1076,7 @@ var ProductPreviewList = ({
1085
1076
  import_design_system3.scrollbarStyles
1086
1077
  ],
1087
1078
  children: products == null ? void 0 : products.map((product, index) => {
1088
- var _a, _b;
1079
+ var _a;
1089
1080
  const [category] = (product == null ? void 0 : product.categories) || [];
1090
1081
  const categoryName = typeof category === "undefined" || !categories ? void 0 : (_a = categories.find((c) => c.id === category.id)) == null ? void 0 : _a.name;
1091
1082
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("li", { css: productPreviewListItem, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
@@ -1098,13 +1089,13 @@ var ProductPreviewList = ({
1098
1089
  "img",
1099
1090
  {
1100
1091
  src: product.thumbnailUrl,
1101
- alt: typeof product.title === "string" ? product.title : product.name || `Product ${index}`,
1092
+ alt: typeof product.title === "string" ? product.title : `Product ${index}`,
1102
1093
  css: productPreviewListImage,
1103
1094
  "data-test-id": "product-image"
1104
1095
  }
1105
1096
  ) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { css: productPreviewListImageDefault }),
1106
1097
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("h4", { css: productPreviewListTitle, "data-test-id": "product-name", children: [
1107
- product.title || product.name,
1098
+ product.title,
1108
1099
  categoryName && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { css: productPreviewListCategoryText, children: categoryName })
1109
1100
  ] }),
1110
1101
  product && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
@@ -1117,12 +1108,12 @@ var ProductPreviewList = ({
1117
1108
  "Price: ",
1118
1109
  product.price
1119
1110
  ] }) : null,
1120
- product.editLink || product.url ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1111
+ product.editLink ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1121
1112
  "a",
1122
1113
  {
1123
1114
  css: productPreviewListLinkBtn,
1124
- href: (_b = product.editLink) != null ? _b : product.url,
1125
- title: `Go to ${product.title || product.name}`,
1115
+ href: product.editLink,
1116
+ title: `Go to ${product.title}`,
1126
1117
  target: "_blank",
1127
1118
  rel: "noopener noreferrer",
1128
1119
  "data-test-id": "edit-product-button",
@@ -2837,18 +2828,6 @@ var import_design_system13 = require("@uniformdev/design-system");
2837
2828
  var import_react25 = require("react");
2838
2829
  var import_jsx_runtime26 = require("@emotion/react/jsx-runtime");
2839
2830
  var UniformMeshSdkContext = (0, import_react25.createContext)(void 0);
2840
- var UniformMeshSdkContextProvider = ({ children }) => {
2841
- let value = void 0;
2842
- if (typeof window !== "undefined" && typeof window.UniformMeshSDK !== "undefined") {
2843
- value = {
2844
- sdk: window.UniformMeshSDK
2845
- };
2846
- }
2847
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(UniformMeshSdkContext.Provider, { value, children: [
2848
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_design_system13.Theme, {}),
2849
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(UniformMeshLocationContextProvider, { children })
2850
- ] });
2851
- };
2852
2831
  var useUniformMeshSdkContext = () => {
2853
2832
  const context = (0, import_react25.useContext)(UniformMeshSdkContext);
2854
2833
  if (!context) {
@@ -2865,9 +2844,7 @@ function useUniformMeshSdk() {
2865
2844
 
2866
2845
  // src/components/UniformMeshLocationContext.tsx
2867
2846
  var import_jsx_runtime27 = require("@emotion/react/jsx-runtime");
2868
- var UniformMeshLocationContext = (0, import_react26.createContext)(
2869
- void 0
2870
- );
2847
+ var UniformMeshLocationContext = (0, import_react26.createContext)(void 0);
2871
2848
  var UniformMeshLocationContextProvider = ({
2872
2849
  children
2873
2850
  }) => {
@@ -2898,20 +2875,9 @@ var useUniformMeshLocationContext = () => {
2898
2875
  };
2899
2876
 
2900
2877
  // src/hooks/useMeshLocation.ts
2901
- var legacyWarned = false;
2902
2878
  function useMeshLocation(expectedLocation) {
2903
2879
  const { location } = useUniformMeshLocationContext();
2904
- let effectiveExpected = expectedLocation;
2905
- if (expectedLocation === "dataTypeInstance") {
2906
- effectiveExpected = "dataResource";
2907
- if (!legacyWarned) {
2908
- console.warn(
2909
- "`dataTypeInstance` mesh location is deprecated, please switch to `dataResource` instead."
2910
- );
2911
- legacyWarned = true;
2912
- }
2913
- }
2914
- if (effectiveExpected && location.type !== effectiveExpected) {
2880
+ if (expectedLocation && location.type !== expectedLocation) {
2915
2881
  throw new Error(`Expected location type ${expectedLocation} but got ${location.type}`);
2916
2882
  }
2917
2883
  const backdoorLocation = (0, import_react27.useRef)(location);
@@ -2934,9 +2900,35 @@ function useMeshLocation(expectedLocation) {
2934
2900
  var import_design_system16 = require("@uniformdev/design-system");
2935
2901
  var React11 = __toESM(require("react"));
2936
2902
 
2903
+ // src/components/Variables/insertVariableIntoText.ts
2904
+ function insertVariableIntoText({
2905
+ variableName: variableName2,
2906
+ variablePrefix,
2907
+ variableSuffix = "",
2908
+ value,
2909
+ selectionStart = null,
2910
+ selectionEnd = null
2911
+ }) {
2912
+ const variableExpression = `${variablePrefix}${variableName2}${variableSuffix}`;
2913
+ if (selectionStart !== null && selectionEnd !== null && selectionStart !== selectionEnd) {
2914
+ return `${value.substring(0, selectionStart)}${variableExpression}${value.substring(selectionEnd)}`;
2915
+ }
2916
+ const hasCursorPosition = selectionStart !== null;
2917
+ let startOffset = 0;
2918
+ if (hasCursorPosition && value.substring(selectionStart - variablePrefix.length, selectionStart) === variablePrefix) {
2919
+ startOffset = variablePrefix.length;
2920
+ }
2921
+ if (hasCursorPosition) {
2922
+ return `${value.substring(0, selectionStart - startOffset)}${variableExpression}${value.substring(
2923
+ selectionStart
2924
+ )}`;
2925
+ }
2926
+ return `${value}${variableExpression}`;
2927
+ }
2928
+
2937
2929
  // src/components/Variables/InsertVariableMenu.tsx
2938
2930
  var import_design_system15 = require("@uniformdev/design-system");
2939
- var import_react30 = require("react");
2931
+ var import_react31 = require("react");
2940
2932
 
2941
2933
  // src/components/Variables/styles/InsertVariableMenu.styles.ts
2942
2934
  var import_react28 = require("@emotion/react");
@@ -2966,7 +2958,11 @@ var variablesTipText = import_react28.css`
2966
2958
  padding: 0 var(--spacing-sm);
2967
2959
  `;
2968
2960
 
2961
+ // src/components/Variables/useOnVariableUpdated.ts
2962
+ var import_react30 = require("react");
2963
+
2969
2964
  // src/components/Variables/VariablesProvider.tsx
2965
+ var import_mitt = __toESM(require("mitt"));
2970
2966
  var React10 = __toESM(require("react"));
2971
2967
 
2972
2968
  // src/components/Variables/VariableEditor.tsx
@@ -3051,6 +3047,7 @@ function VariablesProvider({
3051
3047
  children
3052
3048
  }) {
3053
3049
  const [editing, setEditing] = React10.useState();
3050
+ const events = React10.useMemo(() => (0, import_mitt.default)(), []);
3054
3051
  const Editor = editVariableComponent != null ? editVariableComponent : VariableEditor;
3055
3052
  const contextValue = {
3056
3053
  dispatch: (event) => {
@@ -3072,7 +3069,9 @@ function VariablesProvider({
3072
3069
  throw new Error(`Unknown event ${JSON.stringify(event)}`);
3073
3070
  }
3074
3071
  },
3075
- variables: value
3072
+ variables: value,
3073
+ isEditing: typeof editing !== "undefined",
3074
+ events
3076
3075
  };
3077
3076
  return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(VariablesContext.Provider, { value: contextValue, children: [
3078
3077
  children,
@@ -3083,6 +3082,7 @@ function VariablesProvider({
3083
3082
  setEditing(void 0);
3084
3083
  const { name, ...varValue } = val;
3085
3084
  onChange({ ...value, [name]: varValue });
3085
+ events.emit("update", name);
3086
3086
  },
3087
3087
  onCancel: () => setEditing(void 0),
3088
3088
  variable: editing
@@ -3098,51 +3098,106 @@ function useVariables() {
3098
3098
  return context;
3099
3099
  }
3100
3100
 
3101
+ // src/components/Variables/useOnVariableUpdated.ts
3102
+ function useOnVariableUpdated(fn, disabled) {
3103
+ const { variables, events } = useVariables();
3104
+ (0, import_react30.useEffect)(() => {
3105
+ if (disabled) {
3106
+ return;
3107
+ }
3108
+ events.on("update", fn);
3109
+ return () => events.off("update", fn);
3110
+ }, [disabled, events, fn, variables]);
3111
+ }
3112
+
3113
+ // src/components/Variables/variablesToList.ts
3114
+ function variablesToList(variables) {
3115
+ return Object.entries(variables || {}).sort(([aKey, a], [bKey, b]) => {
3116
+ var _a, _b;
3117
+ if (a.order && b.order) {
3118
+ return a.order - b.order;
3119
+ } else if (a.order) {
3120
+ return 1;
3121
+ } else if (b.order) {
3122
+ return -1;
3123
+ }
3124
+ return ((_a = a.displayName) != null ? _a : aKey).localeCompare((_b = b.displayName) != null ? _b : bKey);
3125
+ }).map(([name, definition]) => ({
3126
+ name,
3127
+ ...definition
3128
+ }));
3129
+ }
3130
+
3101
3131
  // src/components/Variables/InsertVariableMenu.tsx
3102
3132
  var import_jsx_runtime30 = require("@emotion/react/jsx-runtime");
3103
3133
  var InsertVariableMenu = ({
3104
- onVariableClick,
3134
+ onSelectVariable,
3105
3135
  children,
3106
3136
  textValue,
3107
3137
  trigger = "${",
3108
- showAddVariableMenuOption = false
3138
+ showAddVariableMenuOption = false,
3139
+ disabled = false,
3140
+ forceVisible
3109
3141
  }) => {
3110
- const { variables, dispatch } = useVariables();
3111
- const btnRef = (0, import_react30.useRef)(null);
3112
- const tip = "Tip: access this list by typing ${";
3113
- (0, import_react30.useEffect)(() => {
3142
+ const { variables, dispatch, isEditing } = useVariables();
3143
+ const btnRef = (0, import_react31.useRef)(null);
3144
+ const tip = `Tip: access this list by typing ${trigger}`;
3145
+ (0, import_react31.useEffect)(() => {
3114
3146
  if (textValue === trigger && btnRef.current && btnRef.current.getAttribute("aria-expanded") === "false") {
3115
3147
  btnRef.current.click();
3116
3148
  }
3117
3149
  }, [textValue, btnRef, trigger]);
3150
+ const [openedAdd, setOpenedAdd] = (0, import_react31.useState)(false);
3151
+ useOnVariableUpdated((varName) => {
3152
+ onSelectVariable == null ? void 0 : onSelectVariable({ name: varName, default: "" });
3153
+ }, !openedAdd);
3154
+ (0, import_react31.useEffect)(() => {
3155
+ if (openedAdd && !isEditing) {
3156
+ setOpenedAdd(false);
3157
+ }
3158
+ }, [isEditing, openedAdd]);
3159
+ if (disabled) {
3160
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children });
3161
+ }
3162
+ const variablesList = variablesToList(variables);
3118
3163
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { css: menuContainer, children: [
3119
3164
  children,
3120
3165
  /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3121
3166
  import_design_system15.Menu,
3122
3167
  {
3123
3168
  placement: "bottom-start",
3169
+ forceVisible,
3124
3170
  menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { ref: btnRef, css: menuBtn, type: "button", title: "Insert variable", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_design_system15.Icon, { icon: "usb-c", iconColor: "currentColor" }) }),
3125
3171
  menuLabel: "Insert variable",
3126
3172
  children: [
3127
- Object.entries(variables).map(([key, value]) => {
3128
- const { helpText } = value;
3173
+ variablesList.map((variable) => {
3174
+ const { name, helpText } = variable;
3129
3175
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3130
3176
  import_design_system15.MenuItem,
3131
3177
  {
3132
- id: key,
3178
+ id: name,
3133
3179
  css: menuItemTextGroup,
3134
- onClick: () => onVariableClick(decodeURI(`\${${key}}`)),
3180
+ onClick: () => onSelectVariable == null ? void 0 : onSelectVariable(variable),
3135
3181
  children: [
3136
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: key }),
3182
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: name }),
3137
3183
  helpText ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("small", { css: smallText, children: helpText }) : null
3138
3184
  ]
3139
3185
  },
3140
- key
3186
+ name
3141
3187
  );
3142
3188
  }),
3143
3189
  showAddVariableMenuOption ? /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
3144
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_design_system15.MenuItemSeparator, {}),
3145
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_design_system15.MenuItem, { onClick: () => dispatch({ type: "edit", variable: "" }), children: "Add Variable" })
3190
+ variablesList.length ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_design_system15.MenuItemSeparator, {}) : null,
3191
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3192
+ import_design_system15.MenuItem,
3193
+ {
3194
+ onClick: () => {
3195
+ setOpenedAdd(true);
3196
+ dispatch({ type: "edit", variable: "" });
3197
+ },
3198
+ children: "Add Variable"
3199
+ }
3200
+ )
3146
3201
  ] }) : null,
3147
3202
  Object.entries(variables).length || showAddVariableMenuOption ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_design_system15.MenuItemSeparator, {}) : null,
3148
3203
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("i", { css: variablesTipText, children: tip })
@@ -3157,13 +3212,15 @@ var import_jsx_runtime31 = require("@emotion/react/jsx-runtime");
3157
3212
  function InputVariables({
3158
3213
  "aria-label": ariaLabel,
3159
3214
  value,
3160
- // disableVariables,
3215
+ disableVariables,
3161
3216
  onChange,
3162
3217
  onPaste,
3163
- onVariableClick,
3164
3218
  showAddVariableMenuOption,
3219
+ variablePrefix = "${",
3220
+ variableSuffix = "}",
3165
3221
  ...inputProps
3166
3222
  }) {
3223
+ var _a, _b;
3167
3224
  const { variables, dispatch } = useVariables();
3168
3225
  const currentVariables = React11.useRef(variables);
3169
3226
  const currentDispatch = React11.useRef(dispatch);
@@ -3178,21 +3235,40 @@ function InputVariables({
3178
3235
  React11.useEffect(() => {
3179
3236
  currentSetValue.current = onChange;
3180
3237
  }, [onChange]);
3181
- React11.useEffect(() => {
3182
- var _a, _b;
3183
- if (((_a = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a.value) && onPaste) {
3184
- onPaste((_b = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _b.value);
3185
- }
3186
- });
3238
+ const onPasteHandler = () => {
3239
+ setTimeout(() => {
3240
+ if (!inputRef.current) {
3241
+ return;
3242
+ }
3243
+ onPaste == null ? void 0 : onPaste(inputRef.current.value);
3244
+ });
3245
+ };
3246
+ const handleInsertVariable = (variable) => {
3247
+ var _a2, _b2;
3248
+ handleSetValue(
3249
+ insertVariableIntoText({
3250
+ variableName: variable.name,
3251
+ value,
3252
+ variablePrefix,
3253
+ variableSuffix,
3254
+ selectionEnd: (_a2 = inputRef.current) == null ? void 0 : _a2.selectionEnd,
3255
+ selectionStart: (_b2 = inputRef.current) == null ? void 0 : _b2.selectionStart
3256
+ })
3257
+ );
3258
+ };
3187
3259
  const handleSetValue = (rawValue) => {
3188
3260
  currentSetValue.current(rawValue);
3189
3261
  };
3262
+ const currentCursor = (_b = (_a = inputRef.current) == null ? void 0 : _a.selectionStart) != null ? _b : value.length;
3263
+ const forceMenu = value.substring(currentCursor - 2, currentCursor) === "${";
3190
3264
  return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3191
3265
  InsertVariableMenu,
3192
3266
  {
3193
3267
  showAddVariableMenuOption,
3194
3268
  textValue: value,
3195
- onVariableClick,
3269
+ onSelectVariable: handleInsertVariable,
3270
+ disabled: disableVariables,
3271
+ forceVisible: forceMenu || void 0,
3196
3272
  children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3197
3273
  import_design_system16.Input,
3198
3274
  {
@@ -3201,6 +3277,7 @@ function InputVariables({
3201
3277
  showLabel: false,
3202
3278
  value,
3203
3279
  onChange: (e) => handleSetValue(e.currentTarget.value),
3280
+ onPaste: onPasteHandler,
3204
3281
  ...inputProps
3205
3282
  }
3206
3283
  )
@@ -3209,13 +3286,13 @@ function InputVariables({
3209
3286
  }
3210
3287
 
3211
3288
  // src/components/Variables/VariablesList.tsx
3212
- var import_react32 = require("@emotion/react");
3289
+ var import_react33 = require("@emotion/react");
3213
3290
  var import_design_system17 = require("@uniformdev/design-system");
3214
3291
  var import_react_beautiful_dnd2 = require("react-beautiful-dnd");
3215
3292
 
3216
3293
  // src/components/Variables/styles/VariablesList.styles.ts
3217
- var import_react31 = require("@emotion/react");
3218
- var tableRow = (isDragging) => import_react31.css`
3294
+ var import_react32 = require("@emotion/react");
3295
+ var tableRow = (isDragging) => import_react32.css`
3219
3296
  position: relative;
3220
3297
  ${isDragging ? `
3221
3298
  display: table;
@@ -3223,7 +3300,7 @@ var tableRow = (isDragging) => import_react31.css`
3223
3300
  top: auto !important;
3224
3301
  ` : void 0}
3225
3302
  `;
3226
- var tableCellDragIcon = import_react31.css`
3303
+ var tableCellDragIcon = import_react32.css`
3227
3304
  &::after {
3228
3305
  content: '';
3229
3306
  display: block;
@@ -3241,7 +3318,7 @@ var tableCellDragIcon = import_react31.css`
3241
3318
  opacity: 1;
3242
3319
  }
3243
3320
  `;
3244
- var variableName = import_react31.css`
3321
+ var variableName = import_react32.css`
3245
3322
  border: none;
3246
3323
  color: var(--brand-secondary-5);
3247
3324
  font-weight: var(--fw-medium);
@@ -3252,31 +3329,13 @@ var variableName = import_react31.css`
3252
3329
  white-space: nowrap;
3253
3330
  max-width: 20ch;
3254
3331
  `;
3255
- var variableValue = import_react31.css`
3332
+ var variableValue = import_react32.css`
3256
3333
  overflow: hidden;
3257
3334
  text-overflow: ellipsis;
3258
3335
  white-space: nowrap;
3259
3336
  max-width: 20ch;
3260
3337
  `;
3261
3338
 
3262
- // src/components/Variables/variablesToList.ts
3263
- function variablesToList(variables) {
3264
- return Object.entries(variables || {}).sort(([aKey, a], [bKey, b]) => {
3265
- var _a, _b;
3266
- if (a.order && b.order) {
3267
- return a.order - b.order;
3268
- } else if (a.order) {
3269
- return 1;
3270
- } else if (b.order) {
3271
- return -1;
3272
- }
3273
- return ((_a = a.displayName) != null ? _a : aKey).localeCompare((_b = b.displayName) != null ? _b : bKey);
3274
- }).map(([name, definition]) => ({
3275
- name,
3276
- ...definition
3277
- }));
3278
- }
3279
-
3280
3339
  // src/components/Variables/VariablesList.tsx
3281
3340
  var import_jsx_runtime32 = require("@emotion/react/jsx-runtime");
3282
3341
  function VariablesList() {
@@ -3346,7 +3405,7 @@ function VariablesList() {
3346
3405
  title: `delete ${text}`,
3347
3406
  css: [
3348
3407
  import_design_system17.button,
3349
- import_react32.css`
3408
+ import_react33.css`
3350
3409
  background: transparent;
3351
3410
  `
3352
3411
  ],
@@ -3388,7 +3447,7 @@ function DataResourceVariablesList({
3388
3447
  const {
3389
3448
  value,
3390
3449
  metadata: { dataType }
3391
- } = useMeshLocation("dataTypeInstance");
3450
+ } = useMeshLocation("dataResource");
3392
3451
  const variableDefinitions = variablesToList(dataType.variables);
3393
3452
  if (variableDefinitions.length === 0) {
3394
3453
  if (NoVariablesComponent) {
@@ -3441,9 +3500,9 @@ function TextVariableRenderer({ definition, value, setValue }) {
3441
3500
  }
3442
3501
 
3443
3502
  // src/components/Request/RequestBody.tsx
3444
- var import_react34 = require("@emotion/react");
3503
+ var import_react35 = require("@emotion/react");
3445
3504
  var import_design_system19 = require("@uniformdev/design-system");
3446
- var import_react35 = require("react");
3505
+ var import_react36 = require("react");
3447
3506
 
3448
3507
  // src/components/Request/RequestProvider.tsx
3449
3508
  var React12 = __toESM(require("react"));
@@ -3527,11 +3586,11 @@ function useRequest() {
3527
3586
  }
3528
3587
 
3529
3588
  // src/components/Request/styles/Request.styles.ts
3530
- var import_react33 = require("@emotion/react");
3531
- var innerContentStyles = import_react33.css`
3589
+ var import_react34 = require("@emotion/react");
3590
+ var innerContentStyles = import_react34.css`
3532
3591
  background: var(--white);
3533
3592
  `;
3534
- var requestTypeContainer = (bgColor) => import_react33.css`
3593
+ var requestTypeContainer = (bgColor) => import_react34.css`
3535
3594
  align-items: start;
3536
3595
  background: ${bgColor};
3537
3596
  display: grid;
@@ -3569,11 +3628,11 @@ var LANGUAGE_TO_CONTENT_TYPE = {
3569
3628
  };
3570
3629
  function RequestBody() {
3571
3630
  const { request, dispatch } = useRequest();
3572
- const [language, setLanguage] = (0, import_react35.useState)("json");
3631
+ const [language, setLanguage] = (0, import_react36.useState)("json");
3573
3632
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3574
3633
  "div",
3575
3634
  {
3576
- css: import_react34.css`
3635
+ css: import_react35.css`
3577
3636
  background: var(--white);
3578
3637
  `,
3579
3638
  children: [
@@ -3581,7 +3640,7 @@ function RequestBody() {
3581
3640
  RequestTypeContainer,
3582
3641
  {
3583
3642
  bgColor: "var(--gray-100)",
3584
- css: import_react34.css`
3643
+ css: import_react35.css`
3585
3644
  padding: var(--spacing-sm) var(--spacing-base);
3586
3645
  `,
3587
3646
  children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
@@ -3688,7 +3747,8 @@ function RequestHeaders({ disableVariables }) {
3688
3747
  {
3689
3748
  value: header.value,
3690
3749
  onChange: (value) => handleUpdateParamFromMenu({ key: header.key, value, index }),
3691
- onVariableClick: (value) => handleUpdateParamFromMenu({ key: header.key, value, index }),
3750
+ disableVariables,
3751
+ showAddVariableMenuOption: true,
3692
3752
  "data-test-id": "header-value"
3693
3753
  }
3694
3754
  ) : null })
@@ -3787,12 +3847,9 @@ function RequestParameters({ disableVariables }) {
3787
3847
  value: selectedVariable,
3788
3848
  index
3789
3849
  }),
3790
- onVariableClick: (selectedVariable) => handleUpdateParamFromMenu({
3791
- key: parameter.key,
3792
- value: selectedVariable,
3793
- index
3794
- }),
3795
- "data-test-id": "parameter-value"
3850
+ disableVariables,
3851
+ "data-test-id": "parameter-value",
3852
+ showAddVariableMenuOption: true
3796
3853
  }
3797
3854
  ) : null })
3798
3855
  ] }, index);
@@ -3802,8 +3859,8 @@ function RequestParameters({ disableVariables }) {
3802
3859
  }
3803
3860
 
3804
3861
  // src/components/Request/RequestUrl.tsx
3805
- var import_react36 = require("@emotion/react");
3806
- var import_react37 = require("react");
3862
+ var import_react37 = require("@emotion/react");
3863
+ var import_react38 = require("react");
3807
3864
 
3808
3865
  // src/components/Request/urlEncodeRequestParameter.ts
3809
3866
  function urlEncodeRequestUrl(url, varValues) {
@@ -3829,7 +3886,7 @@ function RequestUrl() {
3829
3886
  var _a, _b;
3830
3887
  const { variables } = useVariables();
3831
3888
  const { request } = useRequest();
3832
- const mergedParameters = (0, import_react37.useMemo)(() => {
3889
+ const mergedParameters = (0, import_react38.useMemo)(() => {
3833
3890
  var _a2;
3834
3891
  if (!((_a2 = request.baseRequest) == null ? void 0 : _a2.parameters)) {
3835
3892
  return request.parameters;
@@ -3839,7 +3896,7 @@ function RequestUrl() {
3839
3896
  return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3840
3897
  "small",
3841
3898
  {
3842
- css: import_react36.css`
3899
+ css: import_react37.css`
3843
3900
  display: inline-block;
3844
3901
  margin-bottom: var(--spacing-xs);
3845
3902
  word-break: break-word;
@@ -3899,9 +3956,6 @@ function RequestUrlInput(props) {
3899
3956
  onChange: (value) => {
3900
3957
  dispatch({ type: "setRelativeUrl", relativeUrl: value });
3901
3958
  },
3902
- onVariableClick: (selectedValue) => {
3903
- dispatch({ type: "setRelativeUrl", relativeUrl: request.relativeUrl.concat(selectedValue) });
3904
- },
3905
3959
  showAddVariableMenuOption: true
3906
3960
  }
3907
3961
  );
@@ -4054,12 +4108,12 @@ var import_design_system23 = require("@uniformdev/design-system");
4054
4108
 
4055
4109
  // src/hooks/useInitializeUniformMeshSdk.ts
4056
4110
  var import_mesh_sdk = require("@uniformdev/mesh-sdk");
4057
- var import_react38 = require("react");
4111
+ var import_react39 = require("react");
4058
4112
  var useInitializeUniformMeshSdk = ({ autoResizingDisabled } = {}) => {
4059
- const [error, setError] = (0, import_react38.useState)();
4060
- const [sdk, setSdk] = (0, import_react38.useState)();
4061
- const initializationInProgress = (0, import_react38.useRef)(false);
4062
- (0, import_react38.useEffect)(
4113
+ const [error, setError] = (0, import_react39.useState)();
4114
+ const [sdk, setSdk] = (0, import_react39.useState)();
4115
+ const initializationInProgress = (0, import_react39.useRef)(false);
4116
+ (0, import_react39.useEffect)(
4063
4117
  () => {
4064
4118
  if (typeof window === "undefined" || sdk) {
4065
4119
  return;
@@ -4117,7 +4171,7 @@ var MeshApp = ({
4117
4171
  };
4118
4172
 
4119
4173
  // src/components/ObjectSearch/DataRefreshButton.tsx
4120
- var import_react39 = require("@emotion/react");
4174
+ var import_react40 = require("@emotion/react");
4121
4175
  var import_design_system24 = require("@uniformdev/design-system");
4122
4176
  var import_jsx_runtime45 = require("@emotion/react/jsx-runtime");
4123
4177
  var DataRefreshButton = ({
@@ -4130,7 +4184,7 @@ var DataRefreshButton = ({
4130
4184
  !isLoading ? null : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4131
4185
  import_design_system24.LoadingIndicator,
4132
4186
  {
4133
- css: import_react39.css`
4187
+ css: import_react40.css`
4134
4188
  ${isLoading ? "opacity: 0.2;" : void 0}
4135
4189
  `
4136
4190
  }
@@ -4158,12 +4212,12 @@ var ObjectSearchContainer = ({
4158
4212
 
4159
4213
  // src/components/ObjectSearch/ObjectSearchFilter.tsx
4160
4214
  var import_design_system26 = require("@uniformdev/design-system");
4161
- var import_react42 = require("react");
4215
+ var import_react43 = require("react");
4162
4216
 
4163
4217
  // src/components/ObjectSearch/hooks/ObjectSearchContext.tsx
4164
- var import_react40 = require("react");
4218
+ var import_react41 = require("react");
4165
4219
  var import_jsx_runtime47 = require("@emotion/react/jsx-runtime");
4166
- var ObjectSearchContext = (0, import_react40.createContext)({
4220
+ var ObjectSearchContext = (0, import_react41.createContext)({
4167
4221
  onSetQuery: () => {
4168
4222
  },
4169
4223
  onSelectItem: () => {
@@ -4180,14 +4234,14 @@ var ObjectSearchContext = (0, import_react40.createContext)({
4180
4234
  }
4181
4235
  });
4182
4236
  var ObjectSearchProvider = ({ currentlySelectedItems, children }) => {
4183
- const [query, setQuery] = (0, import_react40.useState)({
4237
+ const [query, setQuery] = (0, import_react41.useState)({
4184
4238
  contentType: "",
4185
4239
  keyword: ""
4186
4240
  });
4187
- const querySearchDeferred = (0, import_react40.useDeferredValue)(query);
4188
- const [selectedItems, setSelectedItems] = (0, import_react40.useState)(currentlySelectedItems != null ? currentlySelectedItems : []);
4189
- const [list, setList] = (0, import_react40.useState)({});
4190
- const onSetQuery = (0, import_react40.useCallback)(
4241
+ const querySearchDeferred = (0, import_react41.useDeferredValue)(query);
4242
+ const [selectedItems, setSelectedItems] = (0, import_react41.useState)(currentlySelectedItems != null ? currentlySelectedItems : []);
4243
+ const [list, setList] = (0, import_react41.useState)({});
4244
+ const onSetQuery = (0, import_react41.useCallback)(
4191
4245
  (value) => {
4192
4246
  if (Array.isArray(value.contentType) && value.contentType.length > 0) {
4193
4247
  return setQuery({
@@ -4199,7 +4253,7 @@ var ObjectSearchProvider = ({ currentlySelectedItems, children }) => {
4199
4253
  },
4200
4254
  [setQuery]
4201
4255
  );
4202
- const onSelectItem = (0, import_react40.useCallback)(
4256
+ const onSelectItem = (0, import_react41.useCallback)(
4203
4257
  (selectedResult) => {
4204
4258
  if (Array.isArray(selectedResult)) {
4205
4259
  setSelectedItems(selectedResult);
@@ -4213,10 +4267,10 @@ var ObjectSearchProvider = ({ currentlySelectedItems, children }) => {
4213
4267
  },
4214
4268
  [setSelectedItems, selectedItems]
4215
4269
  );
4216
- const onRemoveAllSelectedItems = (0, import_react40.useCallback)(() => {
4270
+ const onRemoveAllSelectedItems = (0, import_react41.useCallback)(() => {
4217
4271
  setSelectedItems([]);
4218
4272
  }, [setSelectedItems]);
4219
- const onSetList = (0, import_react40.useCallback)(
4273
+ const onSetList = (0, import_react41.useCallback)(
4220
4274
  (value) => {
4221
4275
  setList(value);
4222
4276
  },
@@ -4239,13 +4293,13 @@ var ObjectSearchProvider = ({ currentlySelectedItems, children }) => {
4239
4293
  );
4240
4294
  };
4241
4295
  var useObjectSearchContext = () => {
4242
- const contextValues = (0, import_react40.useContext)(ObjectSearchContext);
4296
+ const contextValues = (0, import_react41.useContext)(ObjectSearchContext);
4243
4297
  return { ...contextValues };
4244
4298
  };
4245
4299
 
4246
4300
  // src/components/ObjectSearch/styles/ObjectSearchFilterContainer.styles.ts
4247
- var import_react41 = require("@emotion/react");
4248
- var ObjectSearchFilterContainerLabel = import_react41.css`
4301
+ var import_react42 = require("@emotion/react");
4302
+ var ObjectSearchFilterContainerLabel = import_react42.css`
4249
4303
  align-items: center;
4250
4304
  display: flex;
4251
4305
  font-size: var(--fs-sm);
@@ -4253,14 +4307,14 @@ var ObjectSearchFilterContainerLabel = import_react41.css`
4253
4307
  line-height: 1rem;
4254
4308
  margin-bottom: var(--spacing-sm);
4255
4309
  `;
4256
- var ObjectSearchFilterContainer = import_react41.css`
4310
+ var ObjectSearchFilterContainer = import_react42.css`
4257
4311
  display: grid;
4258
4312
  gap: var(--spacing-base);
4259
4313
  `;
4260
- var ObjectSearchFilterDropdownAndTextSearch = import_react41.css`
4314
+ var ObjectSearchFilterDropdownAndTextSearch = import_react42.css`
4261
4315
  grid-template-columns: 0.5fr 1fr;
4262
4316
  `;
4263
- var ObjectSearchFilterGrid = (gridColumns) => import_react41.css`
4317
+ var ObjectSearchFilterGrid = (gridColumns) => import_react42.css`
4264
4318
  display: grid;
4265
4319
  grid-template-columns: ${gridColumns};
4266
4320
  gap: var(--spacing-base);
@@ -4277,7 +4331,7 @@ var ObjectSearchFilter = ({
4277
4331
  selectOptions
4278
4332
  }) => {
4279
4333
  const { query, onSetQuery } = useObjectSearchContext();
4280
- const [searchState, setSearchState] = (0, import_react42.useState)({
4334
+ const [searchState, setSearchState] = (0, import_react43.useState)({
4281
4335
  contentType: "",
4282
4336
  keyword: ""
4283
4337
  });
@@ -4331,9 +4385,9 @@ var ObjectSearchFilterContainer2 = ({ label, children }) => {
4331
4385
  var import_design_system28 = require("@uniformdev/design-system");
4332
4386
 
4333
4387
  // src/components/ObjectSearch/styles/ObjectSearchListItem.styles.ts
4334
- var import_react43 = require("@emotion/react");
4388
+ var import_react44 = require("@emotion/react");
4335
4389
  var import_design_system27 = require("@uniformdev/design-system");
4336
- var ObjectListItemContainer = import_react43.css`
4390
+ var ObjectListItemContainer = import_react44.css`
4337
4391
  align-items: center;
4338
4392
  border: 1px solid var(--gray-300);
4339
4393
  border-radius: var(--rounded-base);
@@ -4346,7 +4400,7 @@ var ObjectListItemContainer = import_react43.css`
4346
4400
  display: none;
4347
4401
  }
4348
4402
  `;
4349
- var ObjectListItemLoading = import_react43.css`
4403
+ var ObjectListItemLoading = import_react44.css`
4350
4404
  animation: ${import_design_system27.skeletonLoading} 1s linear infinite alternate;
4351
4405
  border-color: transparent;
4352
4406
  min-height: 42px;
@@ -4370,31 +4424,31 @@ var ObjectListItemLoading = import_react43.css`
4370
4424
  width: 1rem;
4371
4425
  }
4372
4426
  `;
4373
- var ObjectListItemHeadingGroup = import_react43.css`
4427
+ var ObjectListItemHeadingGroup = import_react44.css`
4374
4428
  align-items: center;
4375
4429
  display: grid;
4376
4430
  `;
4377
- var ObjectListItemTitle = import_react43.css`
4431
+ var ObjectListItemTitle = import_react44.css`
4378
4432
  color: var(--brand-secondary-1);
4379
4433
  display: block;
4380
4434
  font-size: var(--fs-sm);
4381
4435
  `;
4382
- var ObjectListItemSubtitle = import_react43.css`
4436
+ var ObjectListItemSubtitle = import_react44.css`
4383
4437
  color: var(--gray-500);
4384
4438
  display: block;
4385
4439
  font-size: var(--fs-xs);
4386
4440
  line-height: 1;
4387
4441
  `;
4388
- var ObjectListItemInfoContainer = import_react43.css`
4442
+ var ObjectListItemInfoContainer = import_react44.css`
4389
4443
  align-items: center;
4390
4444
  display: flex;
4391
4445
  justify-content: center;
4392
4446
  `;
4393
- var ObjectListItemControlledContent = import_react43.css`
4447
+ var ObjectListItemControlledContent = import_react44.css`
4394
4448
  display: flex;
4395
4449
  gap: var(--spacing-sm);
4396
4450
  `;
4397
- var ObjectListItemUnControlledContent = import_react43.css`
4451
+ var ObjectListItemUnControlledContent = import_react44.css`
4398
4452
  margin-top: var(--spacing-sm);
4399
4453
  grid-column: 1 / -1;
4400
4454
  `;
@@ -4445,9 +4499,9 @@ var import_design_system30 = require("@uniformdev/design-system");
4445
4499
  var import_timeago3 = require("timeago.js");
4446
4500
 
4447
4501
  // src/components/ObjectSearch/styles/ObjectSearchResultItemButton.styles.ts
4448
- var import_react44 = require("@emotion/react");
4502
+ var import_react45 = require("@emotion/react");
4449
4503
  var import_design_system29 = require("@uniformdev/design-system");
4450
- var ButtonStyles = import_react44.css`
4504
+ var ButtonStyles = import_react45.css`
4451
4505
  ${import_design_system29.button}
4452
4506
  background: transparent;
4453
4507
  border: 1px solid var(--brand-secondary-1);
@@ -4474,7 +4528,7 @@ var ButtonStyles = import_react44.css`
4474
4528
  text-decoration: none;
4475
4529
  }
4476
4530
  `;
4477
- var ButtonIcon = import_react44.css`
4531
+ var ButtonIcon = import_react45.css`
4478
4532
  width: 1rem;
4479
4533
  height: 1rem;
4480
4534
  `;
@@ -4503,8 +4557,8 @@ var LinkButton = ({
4503
4557
  };
4504
4558
 
4505
4559
  // src/components/ObjectSearch/styles/ObjectSearchResultItem.styles.ts
4506
- var import_react45 = require("@emotion/react");
4507
- var ObjectSearchResultItemContainer = import_react45.css`
4560
+ var import_react46 = require("@emotion/react");
4561
+ var ObjectSearchResultItemContainer = import_react46.css`
4508
4562
  align-items: center;
4509
4563
  border: 1px solid var(--gray-300);
4510
4564
  border-radius: var(--rounded-base);
@@ -4520,7 +4574,7 @@ var ObjectSearchResultItemContainer = import_react45.css`
4520
4574
  }
4521
4575
  }
4522
4576
  `;
4523
- var ObjectSearchDragHandle = import_react45.css`
4577
+ var ObjectSearchDragHandle = import_react46.css`
4524
4578
  border-left: 2px dotted var(--gray-300);
4525
4579
  border-right: 2px dotted var(--gray-300);
4526
4580
  position: absolute;
@@ -4529,35 +4583,35 @@ var ObjectSearchDragHandle = import_react45.css`
4529
4583
  transition: opacity var(--duration-fast) var(--timing-ease-out);
4530
4584
  opacity: 0;
4531
4585
  `;
4532
- var ObjectSearchResultItemSubtitle = import_react45.css`
4586
+ var ObjectSearchResultItemSubtitle = import_react46.css`
4533
4587
  color: var(--gray-500);
4534
4588
  display: block;
4535
4589
  font-size: var(--fs-xs);
4536
4590
  line-height: 1;
4537
4591
  `;
4538
- var ObjectSearchResultItemTitle = import_react45.css`
4592
+ var ObjectSearchResultItemTitle = import_react46.css`
4539
4593
  align-items: center;
4540
4594
  color: var(--brand-secondary-1);
4541
4595
  display: flex;
4542
4596
  gap: var(--spacing-xs);
4543
4597
  `;
4544
- var ObjectSearchResultItemTimeStamp = import_react45.css`
4598
+ var ObjectSearchResultItemTimeStamp = import_react46.css`
4545
4599
  color: var(--gray-500);
4546
4600
  font-size: var(--fs-xs);
4547
4601
  `;
4548
- var ObjectSearchAuthorStateGroup = import_react45.css`
4602
+ var ObjectSearchAuthorStateGroup = import_react46.css`
4549
4603
  align-items: center;
4550
4604
  display: flex;
4551
4605
  gap: var(--spacing-sm);
4552
4606
  `;
4553
- var ObjectSearchUpdateGroup = import_react45.css`
4607
+ var ObjectSearchUpdateGroup = import_react46.css`
4554
4608
  display: grid;
4555
4609
  `;
4556
- var ObjectSearchContentContainer = import_react45.css`
4610
+ var ObjectSearchContentContainer = import_react46.css`
4557
4611
  display: flex;
4558
4612
  gap: var(--spacing-base);
4559
4613
  `;
4560
- var ObjectSearchImage = import_react45.css`
4614
+ var ObjectSearchImage = import_react46.css`
4561
4615
  width: 56px;
4562
4616
  object-fit: contain;
4563
4617
  `;
@@ -4625,22 +4679,22 @@ var import_design_system31 = require("@uniformdev/design-system");
4625
4679
  var import_react_beautiful_dnd3 = require("react-beautiful-dnd");
4626
4680
 
4627
4681
  // src/components/ObjectSearch/styles/ObjectSearchResultList.styles.ts
4628
- var import_react46 = require("@emotion/react");
4629
- var ObjectSearchResultListContainer = import_react46.css`
4682
+ var import_react47 = require("@emotion/react");
4683
+ var ObjectSearchResultListContainer = import_react47.css`
4630
4684
  align-items: center;
4631
4685
  display: flex;
4632
4686
  gap: var(--spacing-sm);
4633
4687
  justify-content: space-between;
4634
4688
  `;
4635
- var ObjectSearchDragContainer = import_react46.css`
4689
+ var ObjectSearchDragContainer = import_react47.css`
4636
4690
  margin: 0 0 var(--spacing-sm);
4637
4691
  `;
4638
- var ObjectSearchResultListCounterContainer = import_react46.css`
4692
+ var ObjectSearchResultListCounterContainer = import_react47.css`
4639
4693
  align-items: center;
4640
4694
  display: flex;
4641
4695
  gap: var(--spacing-sm);
4642
4696
  `;
4643
- var ObjectSearchResultListTitle = import_react46.css`
4697
+ var ObjectSearchResultListTitle = import_react47.css`
4644
4698
  font-weight: var(--fw-bold);
4645
4699
  line-height: 1;
4646
4700
  `;
@@ -4715,7 +4769,7 @@ var ObjectSearchResultList = ({
4715
4769
 
4716
4770
  // src/components/ObjectSearch/QueryFilter.tsx
4717
4771
  var import_design_system32 = require("@uniformdev/design-system");
4718
- var import_react47 = require("react");
4772
+ var import_react48 = require("react");
4719
4773
  var import_jsx_runtime54 = require("@emotion/react/jsx-runtime");
4720
4774
  var QueryFilter = ({
4721
4775
  requireContentType,
@@ -4746,7 +4800,7 @@ var QueryFilter = ({
4746
4800
  }) => {
4747
4801
  var _a, _b;
4748
4802
  const { query, onSetQuery } = useObjectSearchContext();
4749
- const [queryState, setQueryState] = (0, import_react47.useState)({
4803
+ const [queryState, setQueryState] = (0, import_react48.useState)({
4750
4804
  contentType: "",
4751
4805
  keyword: "",
4752
4806
  count: countValue != null ? countValue : 5,
@@ -4757,7 +4811,7 @@ var QueryFilter = ({
4757
4811
  setQueryState((prev) => ({ ...prev, ...value }));
4758
4812
  onSetQuery({ ...query, ...value });
4759
4813
  };
4760
- (0, import_react47.useEffect)(() => {
4814
+ (0, import_react48.useEffect)(() => {
4761
4815
  onSetQuery(queryState);
4762
4816
  }, [onSetQuery, queryState]);
4763
4817
  return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("fieldset", { children: [
@@ -4841,12 +4895,6 @@ var QueryFilter = ({
4841
4895
  ] });
4842
4896
  };
4843
4897
 
4844
- // src/hooks/useUniformMeshLocation.ts
4845
- function useUniformMeshLocation() {
4846
- const { location } = useUniformMeshLocationContext();
4847
- return location;
4848
- }
4849
-
4850
4898
  // src/hooks/index.ts
4851
4899
  var import_design_system33 = require("@uniformdev/design-system");
4852
4900
 
@@ -4882,7 +4930,6 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
4882
4930
  InputSelect,
4883
4931
  InputToggle,
4884
4932
  InputVariables,
4885
- KeywordSearchInput,
4886
4933
  Label,
4887
4934
  LinkButton,
4888
4935
  LoadingIndicator,
@@ -4938,10 +4985,6 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
4938
4985
  TextVariableRenderer,
4939
4986
  Textarea,
4940
4987
  Theme,
4941
- UniformMeshLocationContext,
4942
- UniformMeshLocationContextProvider,
4943
- UniformMeshSdkContext,
4944
- UniformMeshSdkContextProvider,
4945
4988
  VariableEditor,
4946
4989
  VariablesList,
4947
4990
  VariablesProvider,
@@ -5010,7 +5053,6 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
5010
5053
  selectedItemTitle,
5011
5054
  urlEncodeRequestParameter,
5012
5055
  urlEncodeRequestUrl,
5013
- useInitializeUniformMeshSdk,
5014
5056
  useMeshLocation,
5015
5057
  useObjectSearchContext,
5016
5058
  useParameterShell,
@@ -5019,10 +5061,7 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
5019
5061
  useRequest,
5020
5062
  useRequestHeader,
5021
5063
  useRequestParameter,
5022
- useUniformMeshLocation,
5023
- useUniformMeshLocationContext,
5024
5064
  useUniformMeshSdk,
5025
- useUniformMeshSdkContext,
5026
5065
  useVariables,
5027
5066
  variablesToList
5028
5067
  });