@uniformdev/mesh-sdk-react 18.27.0 → 18.27.1-alpha.23

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
@@ -31,46 +31,58 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  // src/index.ts
32
32
  var src_exports = {};
33
33
  __export(src_exports, {
34
- AddListButton: () => import_design_system25.AddListButton,
35
- Button: () => import_design_system25.Button,
36
- Callout: () => import_design_system25.Callout,
34
+ AddListButton: () => import_design_system34.AddListButton,
35
+ Button: () => import_design_system34.Button,
36
+ Callout: () => import_design_system34.Callout,
37
37
  DamSelectedItem: () => DamSelectedItem,
38
+ DataRefreshButton: () => DataRefreshButton,
38
39
  DataResourceVariablesList: () => DataResourceVariablesList,
39
40
  DataSourceEditor: () => DataSourceEditor,
40
41
  DataTypeEditor: () => DataTypeEditor,
41
42
  DefaultSearchRow: () => DefaultSearchRow,
42
43
  DefaultSelectedItem: () => DefaultSelectedItem,
43
44
  EntrySearch: () => EntrySearch,
44
- Heading: () => import_design_system25.Heading,
45
+ EntrySearchContainer: () => EntrySearchContainer,
46
+ EntrySearchContext: () => EntrySearchContext,
47
+ EntrySearchFilter: () => EntrySearchFilter,
48
+ EntrySearchFilterContainer: () => EntrySearchFilterContainer2,
49
+ EntrySearchListItem: () => EntrySearchListItem,
50
+ EntrySearchListItemLoadingSkeleton: () => EntrySearchListItemLoadingSkeleton,
51
+ EntrySearchProvider: () => EntrySearchProvider,
52
+ EntrySearchResultItem: () => EntrySearchResultItem,
53
+ EntrySearchResultItemButton: () => EntrySearchResultItemButton,
54
+ EntrySearchResultList: () => EntrySearchResultList,
55
+ Heading: () => import_design_system34.Heading,
45
56
  Icons: () => icons_exports,
46
- Input: () => import_design_system25.Input,
47
- InputComboBox: () => import_design_system25.InputComboBox,
48
- InputKeywordSearch: () => import_design_system25.InputKeywordSearch,
49
- InputSelect: () => import_design_system25.InputSelect,
50
- InputToggle: () => import_design_system25.InputToggle,
57
+ Input: () => import_design_system34.Input,
58
+ InputComboBox: () => import_design_system34.InputComboBox,
59
+ InputKeywordSearch: () => import_design_system34.InputKeywordSearch,
60
+ InputSelect: () => import_design_system34.InputSelect,
61
+ InputToggle: () => import_design_system34.InputToggle,
51
62
  InputVariables: () => InputVariables,
52
- KeywordSearchInput: () => import_design_system25.InputKeywordSearch,
53
- Label: () => import_design_system25.Label,
54
- LoadingIndicator: () => import_design_system25.LoadingIndicator,
55
- LoadingOverlay: () => import_design_system25.LoadingOverlay,
56
- Menu: () => import_design_system25.Menu,
57
- MenuItem: () => import_design_system25.MenuItem,
63
+ KeywordSearchInput: () => import_design_system34.InputKeywordSearch,
64
+ Label: () => import_design_system34.Label,
65
+ LinkButton: () => LinkButton,
66
+ LoadingIndicator: () => import_design_system34.LoadingIndicator,
67
+ LoadingOverlay: () => import_design_system34.LoadingOverlay,
68
+ Menu: () => import_design_system34.Menu,
69
+ MenuItem: () => import_design_system34.MenuItem,
58
70
  MeshApp: () => MeshApp,
59
- ParameterGroup: () => import_design_system25.ParameterGroup,
60
- ParameterImage: () => import_design_system25.ParameterImage,
61
- ParameterImageInner: () => import_design_system25.ParameterImageInner,
62
- ParameterInput: () => import_design_system25.ParameterInput,
63
- ParameterInputInner: () => import_design_system25.ParameterInputInner,
64
- ParameterLabel: () => import_design_system25.ParameterLabel,
65
- ParameterMenuButton: () => import_design_system25.ParameterMenuButton,
66
- ParameterSelect: () => import_design_system25.ParameterSelect,
67
- ParameterSelectInner: () => import_design_system25.ParameterSelectInner,
68
- ParameterShell: () => import_design_system25.ParameterShell,
69
- ParameterShellContext: () => import_design_system24.ParameterShellContext,
70
- ParameterTextarea: () => import_design_system25.ParameterTextarea,
71
- ParameterTextareaInner: () => import_design_system25.ParameterTextareaInner,
72
- ParameterToggle: () => import_design_system25.ParameterToggle,
73
- ParameterToggleInner: () => import_design_system25.ParameterToggleInner,
71
+ ParameterGroup: () => import_design_system34.ParameterGroup,
72
+ ParameterImage: () => import_design_system34.ParameterImage,
73
+ ParameterImageInner: () => import_design_system34.ParameterImageInner,
74
+ ParameterInput: () => import_design_system34.ParameterInput,
75
+ ParameterInputInner: () => import_design_system34.ParameterInputInner,
76
+ ParameterLabel: () => import_design_system34.ParameterLabel,
77
+ ParameterMenuButton: () => import_design_system34.ParameterMenuButton,
78
+ ParameterSelect: () => import_design_system34.ParameterSelect,
79
+ ParameterSelectInner: () => import_design_system34.ParameterSelectInner,
80
+ ParameterShell: () => import_design_system34.ParameterShell,
81
+ ParameterShellContext: () => import_design_system33.ParameterShellContext,
82
+ ParameterTextarea: () => import_design_system34.ParameterTextarea,
83
+ ParameterTextareaInner: () => import_design_system34.ParameterTextareaInner,
84
+ ParameterToggle: () => import_design_system34.ParameterToggle,
85
+ ParameterToggleInner: () => import_design_system34.ParameterToggleInner,
74
86
  ProductPreviewList: () => ProductPreviewList,
75
87
  ProductQuery: () => ProductQuery,
76
88
  ProductQueryContext: () => ProductQueryContext,
@@ -78,6 +90,8 @@ __export(src_exports, {
78
90
  ProductSearchContext: () => ProductSearchContext,
79
91
  ProductSearchRow: () => ProductSearchRow,
80
92
  ProductSelectedItem: () => ProductSelectedItem,
93
+ PublishStatus: () => PublishStatus,
94
+ QueryFilter: () => QueryFilter,
81
95
  RequestBody: () => RequestBody,
82
96
  RequestHeaders: () => RequestHeaders,
83
97
  RequestMethodSelect: () => RequestMethodSelect,
@@ -87,13 +101,13 @@ __export(src_exports, {
87
101
  RequestUrl: () => RequestUrl,
88
102
  RequestUrlInput: () => RequestUrlInput,
89
103
  ResolvableLoadingValue: () => ResolvableLoadingValue,
90
- ScrollableList: () => import_design_system25.ScrollableList,
91
- ScrollableListItem: () => import_design_system25.ScrollableListItem,
104
+ ScrollableList: () => import_design_system34.ScrollableList,
105
+ ScrollableListItem: () => import_design_system34.ScrollableListItem,
92
106
  SelectionField: () => SelectionField,
93
- Switch: () => import_design_system25.Switch,
107
+ Switch: () => import_design_system34.Switch,
94
108
  TextVariableRenderer: () => TextVariableRenderer,
95
- Textarea: () => import_design_system25.Textarea,
96
- Theme: () => import_design_system25.Theme,
109
+ Textarea: () => import_design_system34.Textarea,
110
+ Theme: () => import_design_system34.Theme,
97
111
  UniformMeshLocationContext: () => UniformMeshLocationContext,
98
112
  UniformMeshLocationContextProvider: () => UniformMeshLocationContextProvider,
99
113
  UniformMeshSdkContext: () => UniformMeshSdkContext,
@@ -166,9 +180,10 @@ __export(src_exports, {
166
180
  selectedItemTitle: () => selectedItemTitle,
167
181
  urlEncodeRequestParameter: () => urlEncodeRequestParameter,
168
182
  urlEncodeRequestUrl: () => urlEncodeRequestUrl,
183
+ useEntrySearchContext: () => useEntrySearchContext,
169
184
  useInitializeUniformMeshSdk: () => useInitializeUniformMeshSdk,
170
185
  useMeshLocation: () => useMeshLocation,
171
- useParameterShell: () => import_design_system24.useParameterShell,
186
+ useParameterShell: () => import_design_system33.useParameterShell,
172
187
  useProductQueryContext: () => useProductQueryContext,
173
188
  useProductSearchContext: () => useProductSearchContext,
174
189
  useRequest: () => useRequest,
@@ -1134,12 +1149,12 @@ var import_design_system10 = require("@uniformdev/design-system");
1134
1149
  var import_react21 = __toESM(require("react"));
1135
1150
  var import_react_use3 = require("react-use");
1136
1151
 
1137
- // src/components/EntrySearch/DefaultSearchRow.tsx
1152
+ // src/components/legacy/EntrySearch/DefaultSearchRow.tsx
1138
1153
  var import_react9 = require("@emotion/react");
1139
1154
  var import_design_system4 = require("@uniformdev/design-system");
1140
1155
  var import_react10 = require("react");
1141
1156
 
1142
- // src/components/EntrySearch/styles/DefaultSearchRow.styles.ts
1157
+ // src/components/legacy/EntrySearch/styles/DefaultSearchRow.styles.ts
1143
1158
  var import_react8 = require("@emotion/react");
1144
1159
  var searchRowContainer = import_react8.css`
1145
1160
  cursor: pointer;
@@ -1180,7 +1195,7 @@ var searchRowBtn = import_react8.css`
1180
1195
  inset: 0 var(--spacing-sm) 0 auto;
1181
1196
  `;
1182
1197
 
1183
- // src/components/EntrySearch/DefaultSearchRow.tsx
1198
+ // src/components/legacy/EntrySearch/DefaultSearchRow.tsx
1184
1199
  var import_jsx_runtime19 = require("@emotion/react/jsx-runtime");
1185
1200
  var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
1186
1201
  const popoverRef = (0, import_react10.useRef)(null);
@@ -1254,7 +1269,7 @@ var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
1254
1269
  );
1255
1270
  };
1256
1271
 
1257
- // src/components/EntrySearch/DefaultSelectedItem.tsx
1272
+ // src/components/legacy/EntrySearch/DefaultSelectedItem.tsx
1258
1273
  var import_react12 = require("@emotion/react");
1259
1274
  var import_design_system6 = require("@uniformdev/design-system");
1260
1275
  var import_react13 = require("react");
@@ -1272,7 +1287,7 @@ function openWindowWithCloseCallback(href, callback) {
1272
1287
  }, 500);
1273
1288
  }
1274
1289
 
1275
- // src/components/EntrySearch/styles/DefaultSelectedItem.styles.ts
1290
+ // src/components/legacy/EntrySearch/styles/DefaultSelectedItem.styles.ts
1276
1291
  var import_react11 = require("@emotion/react");
1277
1292
  var import_design_system5 = require("@uniformdev/design-system");
1278
1293
  var selectedItemContainer = import_react11.css`
@@ -1356,7 +1371,7 @@ var selectItemLinkBtn = import_react11.css`
1356
1371
  }
1357
1372
  `;
1358
1373
 
1359
- // src/components/EntrySearch/DefaultSelectedItem.tsx
1374
+ // src/components/legacy/EntrySearch/DefaultSelectedItem.tsx
1360
1375
  var import_jsx_runtime20 = require("@emotion/react/jsx-runtime");
1361
1376
  var DefaultSelectedItem = ({
1362
1377
  selectedItem,
@@ -1539,7 +1554,7 @@ var DefaultSelectedItem = ({
1539
1554
  ] }) }, selectedItem.id);
1540
1555
  };
1541
1556
 
1542
- // src/components/EntrySearch/EntrySearch.tsx
1557
+ // src/components/legacy/EntrySearch/EntrySearch.tsx
1543
1558
  var import_react16 = require("@emotion/react");
1544
1559
  var import_design_system7 = require("@uniformdev/design-system");
1545
1560
  var React5 = __toESM(require("react"));
@@ -1580,7 +1595,7 @@ function useLoadingDelay(loading, { delay = 500, minDuration = 200 } = {
1580
1595
  return state === "DISPLAY" || state === "EXPIRE";
1581
1596
  }
1582
1597
 
1583
- // src/components/EntrySearch/styles/EntrySearch.styles.ts
1598
+ // src/components/legacy/EntrySearch/styles/EntrySearch.styles.ts
1584
1599
  var import_react15 = require("@emotion/react");
1585
1600
  var entrySearchWrapper = import_react15.css`
1586
1601
  background: var(--white);
@@ -1691,7 +1706,7 @@ var badgeIcon = import_react15.css`
1691
1706
  height: calc(var(--spacing-lg) + var(--spacing-xs));
1692
1707
  `;
1693
1708
 
1694
- // src/components/EntrySearch/EntrySearch.tsx
1709
+ // src/components/legacy/EntrySearch/EntrySearch.tsx
1695
1710
  var import_jsx_runtime21 = require("@emotion/react/jsx-runtime");
1696
1711
  var DefaultNoResults = ({ searchText, selectedContentType }) => {
1697
1712
  let message = "No content found";
@@ -4036,17 +4051,665 @@ function convertRequestDataToDataType(dataType, requestData) {
4036
4051
  };
4037
4052
  }
4038
4053
 
4039
- // src/components/MeshApp.tsx
4054
+ // src/components/EntrySearch/DataRefreshButton.tsx
4055
+ var import_react38 = require("@emotion/react");
4040
4056
  var import_design_system23 = require("@uniformdev/design-system");
4057
+ var import_jsx_runtime44 = require("@emotion/react/jsx-runtime");
4058
+ var DataRefreshButton = ({ buttonText, isLoading, ...props }) => {
4059
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_design_system23.Button, { buttonType: "primaryInvert", ...props, disabled: isLoading, children: [
4060
+ !isLoading ? null : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4061
+ import_design_system23.LoadingIndicator,
4062
+ {
4063
+ css: import_react38.css`
4064
+ ${isLoading ? "opacity: 0.2;" : void 0}
4065
+ `
4066
+ }
4067
+ ),
4068
+ buttonText
4069
+ ] });
4070
+ };
4071
+
4072
+ // src/components/EntrySearch/EntrySearchContainer.tsx
4073
+ var import_design_system24 = require("@uniformdev/design-system");
4074
+
4075
+ // src/components/EntrySearch/styles/EntrySearchContainer.styles.ts
4076
+ var import_react39 = require("@emotion/react");
4077
+ var EntrySearchBtnGroup = import_react39.css`
4078
+ align-items: center;
4079
+ display: flex;
4080
+ gap: var(--spacing-sm);
4081
+ `;
4082
+
4083
+ // src/components/EntrySearch/EntrySearchContainer.tsx
4084
+ var import_jsx_runtime45 = require("@emotion/react/jsx-runtime");
4085
+ var EntrySearchContainer = ({
4086
+ searchFilters,
4087
+ resultList,
4088
+ onSave,
4089
+ onCancel,
4090
+ children
4091
+ }) => {
4092
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_design_system24.IconsProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_design_system24.VerticalRhythm, { children: [
4093
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_design_system24.Container, { backgroundColor: "gray-50", padding: "var(--spacing-base)", border: true, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_design_system24.VerticalRhythm, { children: [
4094
+ searchFilters,
4095
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_design_system24.ScrollableList, { children: resultList })
4096
+ ] }) }),
4097
+ children,
4098
+ !onSave && !onCancel ? null : /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { css: EntrySearchBtnGroup, children: [
4099
+ !onSave ? null : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_design_system24.Button, { buttonType: "primary", onClick: onSave, children: "Save" }),
4100
+ !onCancel ? null : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_design_system24.Button, { buttonType: "ghostDestructive", onClick: onCancel, children: "Cancel" })
4101
+ ] })
4102
+ ] }) });
4103
+ };
4104
+
4105
+ // src/components/EntrySearch/EntrySearchFilter.tsx
4106
+ var import_design_system25 = require("@uniformdev/design-system");
4107
+ var import_react42 = require("react");
4108
+
4109
+ // src/components/EntrySearch/hooks/EntrySearchContext.tsx
4110
+ var import_react40 = require("react");
4111
+ var import_jsx_runtime46 = require("@emotion/react/jsx-runtime");
4112
+ var EntrySearchContext = (0, import_react40.createContext)({
4113
+ onSetQuery: () => {
4114
+ },
4115
+ onSelectItem: () => {
4116
+ },
4117
+ query: {
4118
+ contentType: "any",
4119
+ keywordSearch: ""
4120
+ },
4121
+ list: {},
4122
+ onSetList: () => {
4123
+ },
4124
+ selectedListItems: [],
4125
+ onRemoveAllSelectedItems: () => {
4126
+ }
4127
+ });
4128
+ var EntrySearchProvider = ({ currentlySelectedItems, children }) => {
4129
+ const [query, setQuery] = (0, import_react40.useState)({
4130
+ contentType: "any",
4131
+ keywordSearch: ""
4132
+ });
4133
+ const querySearchDeferred = (0, import_react40.useDeferredValue)(query);
4134
+ const [selectedItems, setSelectedItems] = (0, import_react40.useState)(currentlySelectedItems != null ? currentlySelectedItems : []);
4135
+ const [list, setList] = (0, import_react40.useState)({});
4136
+ const onSetQuery = (0, import_react40.useCallback)(
4137
+ (value) => {
4138
+ setQuery(value);
4139
+ },
4140
+ [setQuery]
4141
+ );
4142
+ const onSelectItem = (0, import_react40.useCallback)(
4143
+ (selectedResult) => {
4144
+ if (selectedItems.some((item) => item.id === selectedResult.id)) {
4145
+ setSelectedItems((prev) => prev.filter((item) => item.id !== selectedResult.id));
4146
+ } else {
4147
+ setSelectedItems((prev) => [...prev, selectedResult]);
4148
+ }
4149
+ },
4150
+ [setSelectedItems, selectedItems]
4151
+ );
4152
+ const onRemoveAllSelectedItems = (0, import_react40.useCallback)(() => {
4153
+ setSelectedItems([]);
4154
+ }, [setSelectedItems]);
4155
+ const onSetList = (0, import_react40.useCallback)(
4156
+ (value) => {
4157
+ setList(value);
4158
+ },
4159
+ [setList]
4160
+ );
4161
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4162
+ EntrySearchContext.Provider,
4163
+ {
4164
+ value: {
4165
+ onSetQuery,
4166
+ query: querySearchDeferred,
4167
+ onSelectItem,
4168
+ selectedListItems: selectedItems,
4169
+ onRemoveAllSelectedItems,
4170
+ list,
4171
+ onSetList
4172
+ },
4173
+ children
4174
+ }
4175
+ );
4176
+ };
4177
+ var useEntrySearchContext = () => {
4178
+ const contextValues = (0, import_react40.useContext)(EntrySearchContext);
4179
+ return { ...contextValues };
4180
+ };
4181
+
4182
+ // src/components/EntrySearch/styles/EntrySearchFilterContainer.styles.ts
4183
+ var import_react41 = require("@emotion/react");
4184
+ var EntrySearchFilterContainerLabel = import_react41.css`
4185
+ align-items: center;
4186
+ display: flex;
4187
+ font-size: var(--fs-sm);
4188
+ font-weight: var(--fw-bold);
4189
+ line-height: 1rem;
4190
+ margin-bottom: var(--spacing-sm);
4191
+ `;
4192
+ var EntrySearchFilterContainer = import_react41.css`
4193
+ display: grid;
4194
+ gap: var(--spacing-base);
4195
+ `;
4196
+ var EntrySearchFilterDropdownAndTextSearch = import_react41.css`
4197
+ grid-template-columns: 0.5fr 1fr;
4198
+ `;
4199
+ var EntrySearchFilterGrid = (gridColumns) => import_react41.css`
4200
+ display: grid;
4201
+ grid-template-columns: ${gridColumns};
4202
+ gap: var(--spacing-base);
4203
+ `;
4204
+
4205
+ // src/components/EntrySearch/EntrySearchFilter.tsx
4206
+ var import_jsx_runtime47 = require("@emotion/react/jsx-runtime");
4207
+ var EntrySearchFilter = ({
4208
+ requireContentType,
4209
+ typeSelectorAllTypesOptionText = "All content types",
4210
+ searchInputName = "searchText",
4211
+ searchInputPlaceholderText = "Enter keyword to narrow your results",
4212
+ selectLabel = "Content Type Select",
4213
+ selectOptions
4214
+ }) => {
4215
+ const { query, onSetQuery } = useEntrySearchContext();
4216
+ const [searchState, setSearchState] = (0, import_react42.useState)({
4217
+ contentType: "any",
4218
+ keywordSearch: ""
4219
+ });
4220
+ const handleFilterChange = (value) => {
4221
+ setSearchState((prev) => {
4222
+ return { ...prev, ...value };
4223
+ });
4224
+ onSetQuery({ ...query, ...value });
4225
+ };
4226
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("fieldset", { css: [EntrySearchFilterContainer, EntrySearchFilterDropdownAndTextSearch], children: [
4227
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4228
+ import_design_system25.InputSelect,
4229
+ {
4230
+ label: selectLabel,
4231
+ showLabel: false,
4232
+ onChange: (e) => handleFilterChange({ contentType: e.target.value }),
4233
+ options: [
4234
+ ...!requireContentType ? [{ value: "any", label: typeSelectorAllTypesOptionText }] : [],
4235
+ ...selectOptions ? selectOptions.map((option) => {
4236
+ return { value: option.id, label: option.name };
4237
+ }) : []
4238
+ ],
4239
+ value: searchState.contentType
4240
+ }
4241
+ ),
4242
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4243
+ import_design_system25.InputKeywordSearch,
4244
+ {
4245
+ inputFieldName: searchInputName,
4246
+ placeholder: searchInputPlaceholderText,
4247
+ onSearchTextChanged: (e) => handleFilterChange({ keywordSearch: e }),
4248
+ disabledFieldSubmission: true,
4249
+ onClear: () => handleFilterChange({ keywordSearch: "" }),
4250
+ value: searchState.keywordSearch
4251
+ }
4252
+ )
4253
+ ] });
4254
+ };
4255
+
4256
+ // src/components/EntrySearch/EntrySearchFilterContainer.tsx
4257
+ var import_jsx_runtime48 = require("@emotion/react/jsx-runtime");
4258
+ var EntrySearchFilterContainer2 = ({ label, children }) => {
4259
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { children: [
4260
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { css: EntrySearchFilterContainerLabel, children: label }),
4261
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { css: EntrySearchFilterContainer, children })
4262
+ ] });
4263
+ };
4264
+
4265
+ // src/components/EntrySearch/EntrySearchListItem.tsx
4266
+ var import_design_system27 = require("@uniformdev/design-system");
4267
+
4268
+ // src/components/EntrySearch/styles/EntrySearchListItem.styles.ts
4269
+ var import_react43 = require("@emotion/react");
4270
+ var import_design_system26 = require("@uniformdev/design-system");
4271
+ var EntryListItemContainer = import_react43.css`
4272
+ align-items: center;
4273
+ border: 1px solid var(--gray-300);
4274
+ border-radius: var(--rounded-base);
4275
+ background: var(--white);
4276
+ display: grid;
4277
+ grid-template-columns: 1fr 32px;
4278
+ padding: var(--spacing-sm);
4279
+
4280
+ &[hidden] {
4281
+ display: none;
4282
+ }
4283
+ `;
4284
+ var EntryListItemLoading = import_react43.css`
4285
+ animation: ${import_design_system26.skeletonLoading} 1s linear infinite alternate;
4286
+ border-color: transparent;
4287
+ min-height: 42px;
4288
+ position: relative;
4289
+
4290
+ &:before,
4291
+ &:after {
4292
+ background: var(--gray-200);
4293
+ content: '';
4294
+ display: block;
4295
+ height: 1rem;
4296
+ }
4297
+
4298
+ &:before {
4299
+ border-radius: var(--rounded-base);
4300
+ width: 10rem;
4301
+ }
4302
+
4303
+ &:after {
4304
+ border-radius: var(--rounded-full);
4305
+ width: 1rem;
4306
+ }
4307
+ `;
4308
+ var EntryListItemHeadingGroup = import_react43.css`
4309
+ align-items: center;
4310
+ display: grid;
4311
+ `;
4312
+ var EntryListItemTitle = import_react43.css`
4313
+ color: var(--brand-secondary-1);
4314
+ display: block;
4315
+ font-size: var(--fs-sm);
4316
+ `;
4317
+ var EntryListItemSubtitle = import_react43.css`
4318
+ color: var(--gray-500);
4319
+ display: block;
4320
+ font-size: var(--fs-xs);
4321
+ line-height: 1;
4322
+ `;
4323
+ var EntryListItemInfoContainer = import_react43.css`
4324
+ align-items: center;
4325
+ display: flex;
4326
+ justify-content: center;
4327
+ `;
4328
+ var EntryListItemControlledContent = import_react43.css`
4329
+ display: flex;
4330
+ gap: var(--spacing-sm);
4331
+ `;
4332
+ var EntryListItemUnControlledContent = import_react43.css`
4333
+ margin-top: var(--spacing-sm);
4334
+ grid-column: 1 / -1;
4335
+ `;
4336
+
4337
+ // src/components/EntrySearch/EntrySearchListItem.tsx
4338
+ var import_jsx_runtime49 = require("@emotion/react/jsx-runtime");
4339
+ var EntrySearchListItem = ({
4340
+ id,
4341
+ title,
4342
+ subTitle,
4343
+ image,
4344
+ popoverInfo,
4345
+ onSelect,
4346
+ children,
4347
+ ...props
4348
+ }) => {
4349
+ const { onSelectItem, selectedListItems } = useEntrySearchContext();
4350
+ const formatedSubTitle = typeof subTitle === "string" ? subTitle : subTitle == null ? void 0 : subTitle.map((item) => item).join(", ");
4351
+ const handleSelectItem = () => {
4352
+ var _a;
4353
+ const extraData = (_a = onSelect == null ? void 0 : onSelect()) != null ? _a : {};
4354
+ onSelectItem({ id, title, ...extraData });
4355
+ };
4356
+ const hideWhenInSelectedList = selectedListItems.some((item) => item.id === id);
4357
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { role: "listitem", hidden: hideWhenInSelectedList, css: EntryListItemContainer, ...props, children: [
4358
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { role: "button", onClick: handleSelectItem, css: EntryListItemControlledContent, children: [
4359
+ !image ? null : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("img", { ...image, loading: (image == null ? void 0 : image.width) && image.height ? "lazy" : "eager" }),
4360
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { role: "heading", css: EntryListItemHeadingGroup, children: [
4361
+ !subTitle ? null : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { css: EntryListItemSubtitle, children: formatedSubTitle }),
4362
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { css: EntryListItemTitle, children: title })
4363
+ ] })
4364
+ ] }),
4365
+ !popoverInfo ? null : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { css: EntryListItemInfoContainer, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_design_system27.Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, children: popoverInfo }) }),
4366
+ !children ? null : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { css: EntryListItemUnControlledContent, children })
4367
+ ] });
4368
+ };
4369
+ var EntrySearchListItemLoadingSkeleton = () => {
4370
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { role: "presentation", css: [EntryListItemContainer, EntryListItemLoading] });
4371
+ };
4372
+
4373
+ // src/components/EntrySearch/EntrySearchResultItem.tsx
4374
+ var import_design_system28 = require("@uniformdev/design-system");
4375
+ var import_timeago3 = require("timeago.js");
4376
+
4377
+ // src/components/EntrySearch/styles/PublishStatus.styles.ts
4378
+ var import_react44 = require("@emotion/react");
4379
+ var StatusBadge = import_react44.css`
4380
+ display: inline-flex;
4381
+ padding: var(--spacing-xs) var(--spacing-sm);
4382
+ font-size: var(--fs-xxs);
4383
+ font-weight: var(--fw-bold);
4384
+ line-height: 1;
4385
+ text-transform: uppercase;
4386
+ `;
4387
+ var StatusBadgePublished = import_react44.css`
4388
+ background: #c7f1c2;
4389
+ color: #106226;
4390
+ `;
4391
+ var StatusBadgeUnPublished = import_react44.css`
4392
+ background: var(--alert);
4393
+ color: var(--alert-text);
4394
+ `;
4395
+ var StatusBadgeModified = import_react44.css`
4396
+ background: var(--gray-200);
4397
+ color: var(--brand-primary-1);
4398
+ `;
4399
+ var StatusBadgeDraft = import_react44.css`
4400
+ background: var(--gray-200);
4401
+ color: var(--gray-500);
4402
+ `;
4403
+
4404
+ // src/components/EntrySearch/PublishStatus.tsx
4405
+ var import_jsx_runtime50 = require("@emotion/react/jsx-runtime");
4406
+ var PublishStatus = ({ status }) => {
4407
+ const statusStyles = {
4408
+ draft: StatusBadgeDraft,
4409
+ modified: StatusBadgeModified,
4410
+ published: StatusBadgePublished,
4411
+ unpublished: StatusBadgeUnPublished
4412
+ };
4413
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { role: "status", css: [StatusBadge, statusStyles[status]], children: status });
4414
+ };
4415
+
4416
+ // src/components/EntrySearch/styles/EntrySearchResultItem.styles.ts
4417
+ var import_react45 = require("@emotion/react");
4418
+ var EntrySearchResultItemContainer = import_react45.css`
4419
+ align-items: center;
4420
+ border: 1px solid var(--gray-300);
4421
+ border-radius: var(--rounded-base);
4422
+ background: var(--gray-50);
4423
+ display: grid;
4424
+ grid-template-columns: 1fr auto;
4425
+ padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) var(--spacing-md);
4426
+ `;
4427
+ var EntrySearchResultItemSubtitle = import_react45.css`
4428
+ color: var(--gray-500);
4429
+ display: block;
4430
+ font-size: var(--fs-xs);
4431
+ line-height: 1;
4432
+ `;
4433
+ var EntrySearchResultItemTitle = import_react45.css`
4434
+ align-items: center;
4435
+ color: var(--brand-secondary-1);
4436
+ display: flex;
4437
+ gap: var(--spacing-xs);
4438
+ `;
4439
+ var EntrySearchResultItemTimeStamp = import_react45.css`
4440
+ color: var(--gray-500);
4441
+ font-size: var(--fs-xs);
4442
+ `;
4443
+ var EntrySearchAuthorStateGroup = import_react45.css`
4444
+ align-items: center;
4445
+ display: flex;
4446
+ gap: var(--spacing-sm);
4447
+ `;
4448
+
4449
+ // src/components/EntrySearch/EntrySearchResultItem.tsx
4450
+ var import_jsx_runtime51 = require("@emotion/react/jsx-runtime");
4451
+ var EntrySearchResultItem = ({
4452
+ id,
4453
+ title,
4454
+ subtitle,
4455
+ popoverInfo,
4456
+ publishStatus,
4457
+ onRemove,
4458
+ createdAt,
4459
+ hideRemoveButton = false,
4460
+ children
4461
+ }) => {
4462
+ const { onSelectItem } = useEntrySearchContext();
4463
+ const onRemoveItem = () => {
4464
+ onSelectItem({ id });
4465
+ onRemove == null ? void 0 : onRemove();
4466
+ };
4467
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { css: EntrySearchResultItemContainer, children: [
4468
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { children: [
4469
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { children: [
4470
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { css: EntrySearchResultItemSubtitle, children: subtitle }),
4471
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { role: "heading", css: EntrySearchResultItemTitle, children: [
4472
+ title,
4473
+ !popoverInfo ? null : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_design_system28.Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, children: popoverInfo })
4474
+ ] }),
4475
+ !createdAt && !publishStatus ? null : /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { css: EntrySearchAuthorStateGroup, children: [
4476
+ !publishStatus ? null : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(PublishStatus, { status: publishStatus }),
4477
+ !createdAt ? null : /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("small", { css: EntrySearchResultItemTimeStamp, children: [
4478
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("strong", { children: "Last updated: " }),
4479
+ (0, import_timeago3.format)(createdAt)
4480
+ ] })
4481
+ ] })
4482
+ ] }),
4483
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children })
4484
+ ] }),
4485
+ hideRemoveButton ? null : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_design_system28.Button, { buttonType: "ghostDestructive", onClick: onRemoveItem, children: "Remove" })
4486
+ ] });
4487
+ };
4488
+
4489
+ // src/components/EntrySearch/styles/EntrySearchResultItemButton.styles.ts
4490
+ var import_react46 = require("@emotion/react");
4491
+ var import_design_system29 = require("@uniformdev/design-system");
4492
+ var ButtonStyles = import_react46.css`
4493
+ ${import_design_system29.button}
4494
+ background: transparent;
4495
+ border: 1px solid var(--brand-secondary-1);
4496
+ color: var(--brand-secondary-1);
4497
+ padding: var(--spacing-sm);
4498
+ font-size: var(--fs-sm);
4499
+ line-height: 1;
4500
+ gap: var(--spacing-xs);
4501
+ transition: border-color var(--duration-fast) var(--timing-ease-out),
4502
+ background-color var(--duration-fast) var(--timing-ease-out);
4503
+
4504
+ &:hover {
4505
+ background: var(--gray-100);
4506
+ border-color: var(--gray-300);
4507
+ }
4508
+
4509
+ &:disabled {
4510
+ background: var(--gray-300);
4511
+ border-color: var(--gray-200);
4512
+ color: var(--gray-500);
4513
+ }
4514
+
4515
+ &:link {
4516
+ text-decoration: none;
4517
+ }
4518
+ `;
4519
+ var ButtonIcon = import_react46.css`
4520
+ width: 1rem;
4521
+ height: 1rem;
4522
+ `;
4523
+
4524
+ // src/components/EntrySearch/EntrySearchResultItemButton.tsx
4525
+ var import_jsx_runtime52 = require("@emotion/react/jsx-runtime");
4526
+ var EntrySearchResultItemButton = ({ text, icon, ...props }) => {
4527
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("button", { type: "button", css: ButtonStyles, ...props, children: [
4528
+ !icon ? null : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Image, { src: icon, css: ButtonIcon }),
4529
+ text
4530
+ ] });
4531
+ };
4532
+ var LinkButton = ({ text, icon, ...props }) => {
4533
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("a", { ...props, css: ButtonStyles, children: [
4534
+ !icon ? null : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Image, { src: icon, css: ButtonIcon }),
4535
+ text
4536
+ ] });
4537
+ };
4538
+
4539
+ // src/components/EntrySearch/EntrySearchResultList.tsx
4540
+ var import_design_system30 = require("@uniformdev/design-system");
4541
+
4542
+ // src/components/EntrySearch/styles/EntrySearchResultList.styles.ts
4543
+ var import_react47 = require("@emotion/react");
4544
+ var EntrySearchResultListContainer = import_react47.css`
4545
+ align-items: center;
4546
+ display: flex;
4547
+ gap: var(--spacing-sm);
4548
+ justify-content: space-between;
4549
+ `;
4550
+ var EntrySearchResultListCounterContainer = import_react47.css`
4551
+ align-items: center;
4552
+ display: flex;
4553
+ gap: var(--spacing-sm);
4554
+ `;
4555
+ var EntrySearchResultListTitle = import_react47.css`
4556
+ font-weight: var(--fw-bold);
4557
+ line-height: 1;
4558
+ `;
4559
+
4560
+ // src/components/EntrySearch/EntrySearchResultList.tsx
4561
+ var import_jsx_runtime53 = require("@emotion/react/jsx-runtime");
4562
+ var EntrySearchResultList = ({
4563
+ resultLabelText = "Selected",
4564
+ removeButtonText = "Remove all",
4565
+ onRemoveAllSelected,
4566
+ hideRemoveButton = false,
4567
+ additionalButtons,
4568
+ children
4569
+ }) => {
4570
+ const { selectedListItems, onRemoveAllSelectedItems } = useEntrySearchContext();
4571
+ const handleRemoveAllSelectedItems = () => {
4572
+ onRemoveAllSelectedItems();
4573
+ onRemoveAllSelected == null ? void 0 : onRemoveAllSelected();
4574
+ };
4575
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
4576
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { role: "group", css: EntrySearchResultListContainer, children: [
4577
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { role: "note", css: EntrySearchResultListCounterContainer, children: [
4578
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { css: EntrySearchResultListTitle, children: resultLabelText }),
4579
+ " ",
4580
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_design_system30.Counter, { count: selectedListItems.length })
4581
+ ] }),
4582
+ hideRemoveButton ? null : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
4583
+ import_design_system30.Button,
4584
+ {
4585
+ buttonType: "ghostDestructive",
4586
+ size: "xs",
4587
+ disabled: selectedListItems.length === 0,
4588
+ onClick: handleRemoveAllSelectedItems,
4589
+ children: removeButtonText
4590
+ }
4591
+ ),
4592
+ additionalButtons
4593
+ ] }),
4594
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_design_system30.VerticalRhythm, { gap: "sm", children })
4595
+ ] });
4596
+ };
4597
+
4598
+ // src/components/EntrySearch/QueryFilter.tsx
4599
+ var import_design_system31 = require("@uniformdev/design-system");
4600
+ var import_react48 = require("react");
4601
+ var import_jsx_runtime54 = require("@emotion/react/jsx-runtime");
4602
+ var QueryFilter = ({
4603
+ requireContentType,
4604
+ queryFilterTitle = "Configure Query",
4605
+ contentTypeLabel = "Filter by content type",
4606
+ typeSelectorAllTypesOptionText = "All content types",
4607
+ contentTypeOptions,
4608
+ countLabel = "Count",
4609
+ countValue = 5,
4610
+ sortLabel = "Sort",
4611
+ sortOptions,
4612
+ sortOrderLabel = "Sort Order",
4613
+ sortOrderOptions = [
4614
+ {
4615
+ name: "Ascending",
4616
+ id: "ascending"
4617
+ },
4618
+ {
4619
+ name: "Descending",
4620
+ id: "descending"
4621
+ }
4622
+ ],
4623
+ children
4624
+ }) => {
4625
+ var _a, _b;
4626
+ const { query, onSetQuery } = useEntrySearchContext();
4627
+ const [queryState, setQueryState] = (0, import_react48.useState)({
4628
+ contentType: query.contentType,
4629
+ count: countValue != null ? countValue : 5,
4630
+ sortBy: (_a = sortOptions[0].id) != null ? _a : "",
4631
+ sortOrder: (_b = sortOrderOptions[0].id) != null ? _b : ""
4632
+ });
4633
+ const handleFilterChange = (value) => {
4634
+ setQueryState((prev) => ({ ...prev, ...value }));
4635
+ onSetQuery({ ...query, ...value });
4636
+ };
4637
+ (0, import_react48.useEffect)(() => {
4638
+ onSetQuery(queryState);
4639
+ }, [onSetQuery, queryState]);
4640
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("fieldset", { children: [
4641
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { css: EntrySearchFilterContainerLabel, children: queryFilterTitle }),
4642
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { css: EntrySearchFilterContainer, children: [
4643
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { css: EntrySearchFilterGrid("1fr minmax(100px, 0.2fr)"), children: [
4644
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4645
+ import_design_system31.InputSelect,
4646
+ {
4647
+ label: contentTypeLabel,
4648
+ options: [
4649
+ ...!requireContentType ? [{ value: "any", label: typeSelectorAllTypesOptionText }] : [],
4650
+ ...contentTypeOptions ? contentTypeOptions.map((option) => {
4651
+ return { value: option.id, label: option.name };
4652
+ }) : []
4653
+ ],
4654
+ onChange: (e) => handleFilterChange({ contentType: e.target.value }),
4655
+ value: queryState.contentType
4656
+ }
4657
+ ),
4658
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4659
+ import_design_system31.Input,
4660
+ {
4661
+ label: countLabel,
4662
+ type: "number",
4663
+ onChange: (e) => handleFilterChange({ count: e.target.value }),
4664
+ defaultValue: countValue,
4665
+ value: queryState.count
4666
+ }
4667
+ )
4668
+ ] }),
4669
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { css: EntrySearchFilterGrid("repeat(2, 1fr)"), children: [
4670
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4671
+ import_design_system31.InputSelect,
4672
+ {
4673
+ label: sortLabel,
4674
+ options: [
4675
+ ...sortOptions ? sortOptions.map((option) => {
4676
+ return { value: option.id, label: option.name };
4677
+ }) : []
4678
+ ],
4679
+ onChange: (e) => handleFilterChange({ sortBy: e.target.value }),
4680
+ value: queryState.sortBy
4681
+ }
4682
+ ),
4683
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4684
+ import_design_system31.InputSelect,
4685
+ {
4686
+ label: sortOrderLabel,
4687
+ options: [
4688
+ ...sortOrderOptions ? sortOrderOptions.map((option) => {
4689
+ return { value: option.id, label: option.name };
4690
+ }) : []
4691
+ ],
4692
+ onChange: (e) => handleFilterChange({ sortOrder: e.target.value }),
4693
+ value: queryState.sortOrder
4694
+ }
4695
+ )
4696
+ ] }),
4697
+ children
4698
+ ] })
4699
+ ] });
4700
+ };
4701
+
4702
+ // src/components/MeshApp.tsx
4703
+ var import_design_system32 = require("@uniformdev/design-system");
4041
4704
 
4042
4705
  // src/hooks/useInitializeUniformMeshSdk.ts
4043
4706
  var import_mesh_sdk = require("@uniformdev/mesh-sdk");
4044
- var import_react38 = require("react");
4707
+ var import_react49 = require("react");
4045
4708
  var useInitializeUniformMeshSdk = ({ autoResizingDisabled } = {}) => {
4046
- const [error, setError] = (0, import_react38.useState)();
4047
- const [sdk, setSdk] = (0, import_react38.useState)();
4048
- const initializationInProgress = (0, import_react38.useRef)(false);
4049
- (0, import_react38.useEffect)(
4709
+ const [error, setError] = (0, import_react49.useState)();
4710
+ const [sdk, setSdk] = (0, import_react49.useState)();
4711
+ const initializationInProgress = (0, import_react49.useRef)(false);
4712
+ (0, import_react49.useEffect)(
4050
4713
  () => {
4051
4714
  if (typeof window === "undefined" || sdk) {
4052
4715
  return;
@@ -4079,7 +4742,7 @@ var useInitializeUniformMeshSdk = ({ autoResizingDisabled } = {}) => {
4079
4742
  };
4080
4743
 
4081
4744
  // src/components/MeshApp.tsx
4082
- var import_jsx_runtime44 = require("@emotion/react/jsx-runtime");
4745
+ var import_jsx_runtime55 = require("@emotion/react/jsx-runtime");
4083
4746
  var MeshApp = ({
4084
4747
  children,
4085
4748
  loadingComponent,
@@ -4088,18 +4751,18 @@ var MeshApp = ({
4088
4751
  const { initializing, error, sdk } = useInitializeUniformMeshSdk();
4089
4752
  if (initializing || !sdk) {
4090
4753
  const LoadingComponent = loadingComponent;
4091
- return LoadingComponent ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(LoadingComponent, {}) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_design_system23.LoadingIndicator, {});
4754
+ return LoadingComponent ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(LoadingComponent, {}) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_design_system32.LoadingIndicator, {});
4092
4755
  }
4093
4756
  if (error) {
4094
4757
  const ErrorComponent = errorComponent;
4095
4758
  if (ErrorComponent) {
4096
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ErrorComponent, { error });
4759
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ErrorComponent, { error });
4097
4760
  }
4098
4761
  throw error;
4099
4762
  }
4100
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(UniformMeshSdkContext.Provider, { value: { sdk }, children: [
4101
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_design_system23.Theme, {}),
4102
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(UniformMeshLocationContextProvider, { children })
4763
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(UniformMeshSdkContext.Provider, { value: { sdk }, children: [
4764
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_design_system32.Theme, {}),
4765
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(UniformMeshLocationContextProvider, { children })
4103
4766
  ] });
4104
4767
  };
4105
4768
 
@@ -4110,7 +4773,7 @@ function useUniformMeshLocation() {
4110
4773
  }
4111
4774
 
4112
4775
  // src/hooks/index.ts
4113
- var import_design_system24 = require("@uniformdev/design-system");
4776
+ var import_design_system33 = require("@uniformdev/design-system");
4114
4777
 
4115
4778
  // src/utils/createLocationValidator.ts
4116
4779
  function createLocationValidator(setValue, validate) {
@@ -4121,7 +4784,7 @@ function createLocationValidator(setValue, validate) {
4121
4784
  }
4122
4785
 
4123
4786
  // src/index.ts
4124
- var import_design_system25 = require("@uniformdev/design-system");
4787
+ var import_design_system34 = require("@uniformdev/design-system");
4125
4788
  __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
4126
4789
  // Annotate the CommonJS export names for ESM import in node:
4127
4790
  0 && (module.exports = {
@@ -4129,12 +4792,23 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
4129
4792
  Button,
4130
4793
  Callout,
4131
4794
  DamSelectedItem,
4795
+ DataRefreshButton,
4132
4796
  DataResourceVariablesList,
4133
4797
  DataSourceEditor,
4134
4798
  DataTypeEditor,
4135
4799
  DefaultSearchRow,
4136
4800
  DefaultSelectedItem,
4137
4801
  EntrySearch,
4802
+ EntrySearchContainer,
4803
+ EntrySearchContext,
4804
+ EntrySearchFilter,
4805
+ EntrySearchFilterContainer,
4806
+ EntrySearchListItem,
4807
+ EntrySearchListItemLoadingSkeleton,
4808
+ EntrySearchProvider,
4809
+ EntrySearchResultItem,
4810
+ EntrySearchResultItemButton,
4811
+ EntrySearchResultList,
4138
4812
  Heading,
4139
4813
  Icons,
4140
4814
  Input,
@@ -4145,6 +4819,7 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
4145
4819
  InputVariables,
4146
4820
  KeywordSearchInput,
4147
4821
  Label,
4822
+ LinkButton,
4148
4823
  LoadingIndicator,
4149
4824
  LoadingOverlay,
4150
4825
  Menu,
@@ -4172,6 +4847,8 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
4172
4847
  ProductSearchContext,
4173
4848
  ProductSearchRow,
4174
4849
  ProductSelectedItem,
4850
+ PublishStatus,
4851
+ QueryFilter,
4175
4852
  RequestBody,
4176
4853
  RequestHeaders,
4177
4854
  RequestMethodSelect,
@@ -4260,6 +4937,7 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
4260
4937
  selectedItemTitle,
4261
4938
  urlEncodeRequestParameter,
4262
4939
  urlEncodeRequestUrl,
4940
+ useEntrySearchContext,
4263
4941
  useInitializeUniformMeshSdk,
4264
4942
  useMeshLocation,
4265
4943
  useParameterShell,