@uniformdev/mesh-sdk-react 19.114.0 → 19.114.1-alpha.7
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.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.esm.js +22 -40
- package/dist/index.js +18 -36
- package/dist/index.mjs +22 -40
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1459,12 +1459,16 @@ type QueryFilterSearchProps = {
|
|
|
1459
1459
|
/** sets the sortOrder filter value */
|
|
1460
1460
|
sortOrder: string;
|
|
1461
1461
|
};
|
|
1462
|
-
type
|
|
1462
|
+
type QueryFilterSelectionOptionProps = Array<{
|
|
1463
1463
|
id: string;
|
|
1464
1464
|
name: string;
|
|
1465
|
+
/** contains id or machine values. will be used as value attribute in <option> */
|
|
1466
|
+
value?: string;
|
|
1467
|
+
/** Contains human-readable display name for select options.
|
|
1468
|
+
* Used as value in case value is not present <option> */
|
|
1465
1469
|
label: string;
|
|
1466
1470
|
}>;
|
|
1467
|
-
type QueryFilterProps<TSelectOptions extends
|
|
1471
|
+
type QueryFilterProps<TSelectOptions extends QueryFilterSelectionOptionProps = QueryFilterSelectionOptionProps> = {
|
|
1468
1472
|
/** sets the query filter title
|
|
1469
1473
|
* @default 'Configure Query'
|
|
1470
1474
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1459,12 +1459,16 @@ type QueryFilterSearchProps = {
|
|
|
1459
1459
|
/** sets the sortOrder filter value */
|
|
1460
1460
|
sortOrder: string;
|
|
1461
1461
|
};
|
|
1462
|
-
type
|
|
1462
|
+
type QueryFilterSelectionOptionProps = Array<{
|
|
1463
1463
|
id: string;
|
|
1464
1464
|
name: string;
|
|
1465
|
+
/** contains id or machine values. will be used as value attribute in <option> */
|
|
1466
|
+
value?: string;
|
|
1467
|
+
/** Contains human-readable display name for select options.
|
|
1468
|
+
* Used as value in case value is not present <option> */
|
|
1465
1469
|
label: string;
|
|
1466
1470
|
}>;
|
|
1467
|
-
type QueryFilterProps<TSelectOptions extends
|
|
1471
|
+
type QueryFilterProps<TSelectOptions extends QueryFilterSelectionOptionProps = QueryFilterSelectionOptionProps> = {
|
|
1468
1472
|
/** sets the query filter title
|
|
1469
1473
|
* @default 'Configure Query'
|
|
1470
1474
|
*/
|
package/dist/index.esm.js
CHANGED
|
@@ -6515,7 +6515,7 @@ var DefaultResultList = () => {
|
|
|
6515
6515
|
};
|
|
6516
6516
|
|
|
6517
6517
|
// src/components/ObjectSearch/ObjectSearchFilter.tsx
|
|
6518
|
-
import {
|
|
6518
|
+
import { DebouncedInputKeywordSearch, InputSelect as InputSelect6 } from "@uniformdev/design-system";
|
|
6519
6519
|
import { useMemo as useMemo15, useState as useState17 } from "react";
|
|
6520
6520
|
|
|
6521
6521
|
// src/components/ObjectSearch/styles/ObjectSearchFilterContainer.styles.ts
|
|
@@ -6589,14 +6589,14 @@ var ObjectSearchFilter = ({
|
|
|
6589
6589
|
}
|
|
6590
6590
|
) : null,
|
|
6591
6591
|
/* @__PURE__ */ jsx62(
|
|
6592
|
-
|
|
6592
|
+
DebouncedInputKeywordSearch,
|
|
6593
6593
|
{
|
|
6594
6594
|
inputFieldName: searchInputName,
|
|
6595
6595
|
placeholder: searchInputPlaceholderText,
|
|
6596
|
-
onSearchTextChanged: (
|
|
6596
|
+
onSearchTextChanged: (keyword) => handleFilterChange({ keyword }),
|
|
6597
6597
|
disabledFieldSubmission: true,
|
|
6598
|
-
|
|
6599
|
-
|
|
6598
|
+
defaultValue: searchState.keyword,
|
|
6599
|
+
delay: 300
|
|
6600
6600
|
}
|
|
6601
6601
|
)
|
|
6602
6602
|
]
|
|
@@ -6920,7 +6920,7 @@ function ObjectSearchResultList({
|
|
|
6920
6920
|
}
|
|
6921
6921
|
|
|
6922
6922
|
// src/components/ObjectSearch/QueryFilter.tsx
|
|
6923
|
-
import {
|
|
6923
|
+
import { DebouncedInputKeywordSearch as DebouncedInputKeywordSearch2, Input as Input5, InputSelect as InputSelect7, VerticalRhythm as VerticalRhythm3 } from "@uniformdev/design-system";
|
|
6924
6924
|
import { useEffect as useEffect16, useState as useState18 } from "react";
|
|
6925
6925
|
import { jsx as jsx67, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
6926
6926
|
var QueryFilter = ({
|
|
@@ -6955,10 +6955,10 @@ var QueryFilter = ({
|
|
|
6955
6955
|
const { query, onSetQuery } = useObjectSearchContext();
|
|
6956
6956
|
const [queryState, setQueryState] = useState18({
|
|
6957
6957
|
contentType: (_a = query.contentType) != null ? _a : "",
|
|
6958
|
-
keyword: (_b = query.
|
|
6959
|
-
count: countValue
|
|
6960
|
-
sortBy: (_c =
|
|
6961
|
-
sortOrder: (_d =
|
|
6958
|
+
keyword: (_b = query.keyword) != null ? _b : "",
|
|
6959
|
+
count: countValue,
|
|
6960
|
+
sortBy: (_c = query.sortBy) != null ? _c : "",
|
|
6961
|
+
sortOrder: (_d = query.sortOrder) != null ? _d : ""
|
|
6962
6962
|
});
|
|
6963
6963
|
const handleFilterChange = (value) => {
|
|
6964
6964
|
setQueryState((prev) => ({ ...prev, ...value }));
|
|
@@ -6966,7 +6966,7 @@ var QueryFilter = ({
|
|
|
6966
6966
|
};
|
|
6967
6967
|
useEffect16(() => {
|
|
6968
6968
|
onSetQuery(queryState);
|
|
6969
|
-
}, [
|
|
6969
|
+
}, []);
|
|
6970
6970
|
return /* @__PURE__ */ jsxs41("fieldset", { children: [
|
|
6971
6971
|
/* @__PURE__ */ jsx67("span", { css: ObjectSearchFilterContainerLabel, children: queryFilterTitle }),
|
|
6972
6972
|
/* @__PURE__ */ jsx67("div", { css: ObjectSearchFilterContainer, children: /* @__PURE__ */ jsxs41(VerticalRhythm3, { children: [
|
|
@@ -6979,15 +6979,15 @@ var QueryFilter = ({
|
|
|
6979
6979
|
disableInlineMenu: true,
|
|
6980
6980
|
id: "qf_searchText",
|
|
6981
6981
|
inputWhenNoVariables: /* @__PURE__ */ jsx67(
|
|
6982
|
-
|
|
6982
|
+
DebouncedInputKeywordSearch2,
|
|
6983
6983
|
{
|
|
6984
6984
|
id: "qf_searchText",
|
|
6985
6985
|
inputFieldName: searchInputName,
|
|
6986
6986
|
placeholder: searchInputPlaceholderText,
|
|
6987
|
-
onSearchTextChanged: (
|
|
6987
|
+
onSearchTextChanged: (keyword) => handleFilterChange({ keyword }),
|
|
6988
6988
|
disabledFieldSubmission: true,
|
|
6989
|
-
|
|
6990
|
-
|
|
6989
|
+
delay: 300,
|
|
6990
|
+
defaultValue: queryState.keyword
|
|
6991
6991
|
}
|
|
6992
6992
|
)
|
|
6993
6993
|
}
|
|
@@ -7007,13 +7007,8 @@ var QueryFilter = ({
|
|
|
7007
7007
|
id: "qf_contentType",
|
|
7008
7008
|
label: contentTypeLabel,
|
|
7009
7009
|
showLabel: false,
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
...contentTypeOptions ? contentTypeOptions.map((option) => {
|
|
7013
|
-
var _a2;
|
|
7014
|
-
return { id: option.id, label: (_a2 = option.label) != null ? _a2 : option.name, name: option.name };
|
|
7015
|
-
}) : []
|
|
7016
|
-
],
|
|
7010
|
+
defaultOption: requireContentType ? void 0 : typeSelectorAllTypesOptionText,
|
|
7011
|
+
options: contentTypeOptions != null ? contentTypeOptions : [],
|
|
7017
7012
|
onChange: (e) => handleFilterChange({ contentType: e.target.value }),
|
|
7018
7013
|
value: queryState.contentType
|
|
7019
7014
|
}
|
|
@@ -7058,16 +7053,8 @@ var QueryFilter = ({
|
|
|
7058
7053
|
label: sortLabel,
|
|
7059
7054
|
id: "qf_sortBy",
|
|
7060
7055
|
showLabel: false,
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
label: "Select a sort",
|
|
7064
|
-
id: ""
|
|
7065
|
-
},
|
|
7066
|
-
...sortOptions ? sortOptions.map((option) => {
|
|
7067
|
-
var _a2;
|
|
7068
|
-
return { id: option.id, name: option.name, label: (_a2 = option.label) != null ? _a2 : option.name };
|
|
7069
|
-
}) : []
|
|
7070
|
-
],
|
|
7056
|
+
defaultOption: "Select a sort",
|
|
7057
|
+
options: sortOptions != null ? sortOptions : [],
|
|
7071
7058
|
onChange: (e) => handleFilterChange({ sortBy: e.target.value }),
|
|
7072
7059
|
value: queryState.sortBy
|
|
7073
7060
|
}
|
|
@@ -7088,12 +7075,7 @@ var QueryFilter = ({
|
|
|
7088
7075
|
label: sortOrderLabel,
|
|
7089
7076
|
id: "qf_sortOrder",
|
|
7090
7077
|
showLabel: false,
|
|
7091
|
-
options: [
|
|
7092
|
-
...sortOrderOptions ? sortOrderOptions.map((option) => {
|
|
7093
|
-
var _a2;
|
|
7094
|
-
return { value: option.id, label: (_a2 = option.label) != null ? _a2 : option.name, name: option.name };
|
|
7095
|
-
}) : []
|
|
7096
|
-
],
|
|
7078
|
+
options: sortOrderOptions != null ? sortOrderOptions : [],
|
|
7097
7079
|
onChange: (e) => handleFilterChange({ sortOrder: e.target.value }),
|
|
7098
7080
|
value: queryState.sortOrder
|
|
7099
7081
|
}
|
|
@@ -7198,7 +7180,7 @@ import {
|
|
|
7198
7180
|
Heading,
|
|
7199
7181
|
Input as Input6,
|
|
7200
7182
|
InputComboBox,
|
|
7201
|
-
InputKeywordSearch as
|
|
7183
|
+
InputKeywordSearch as InputKeywordSearch2,
|
|
7202
7184
|
InputSelect as InputSelect8,
|
|
7203
7185
|
InputToggle,
|
|
7204
7186
|
Label,
|
|
@@ -7252,7 +7234,7 @@ export {
|
|
|
7252
7234
|
icons_exports as Icons,
|
|
7253
7235
|
Input6 as Input,
|
|
7254
7236
|
InputComboBox,
|
|
7255
|
-
|
|
7237
|
+
InputKeywordSearch2 as InputKeywordSearch,
|
|
7256
7238
|
InputSelect8 as InputSelect,
|
|
7257
7239
|
InputToggle,
|
|
7258
7240
|
InputVariables,
|
package/dist/index.js
CHANGED
|
@@ -6721,14 +6721,14 @@ var ObjectSearchFilter = ({
|
|
|
6721
6721
|
}
|
|
6722
6722
|
) : null,
|
|
6723
6723
|
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
6724
|
-
import_design_system36.
|
|
6724
|
+
import_design_system36.DebouncedInputKeywordSearch,
|
|
6725
6725
|
{
|
|
6726
6726
|
inputFieldName: searchInputName,
|
|
6727
6727
|
placeholder: searchInputPlaceholderText,
|
|
6728
|
-
onSearchTextChanged: (
|
|
6728
|
+
onSearchTextChanged: (keyword) => handleFilterChange({ keyword }),
|
|
6729
6729
|
disabledFieldSubmission: true,
|
|
6730
|
-
|
|
6731
|
-
|
|
6730
|
+
defaultValue: searchState.keyword,
|
|
6731
|
+
delay: 300
|
|
6732
6732
|
}
|
|
6733
6733
|
)
|
|
6734
6734
|
]
|
|
@@ -7087,10 +7087,10 @@ var QueryFilter = ({
|
|
|
7087
7087
|
const { query, onSetQuery } = useObjectSearchContext();
|
|
7088
7088
|
const [queryState, setQueryState] = (0, import_react73.useState)({
|
|
7089
7089
|
contentType: (_a = query.contentType) != null ? _a : "",
|
|
7090
|
-
keyword: (_b = query.
|
|
7091
|
-
count: countValue
|
|
7092
|
-
sortBy: (_c =
|
|
7093
|
-
sortOrder: (_d =
|
|
7090
|
+
keyword: (_b = query.keyword) != null ? _b : "",
|
|
7091
|
+
count: countValue,
|
|
7092
|
+
sortBy: (_c = query.sortBy) != null ? _c : "",
|
|
7093
|
+
sortOrder: (_d = query.sortOrder) != null ? _d : ""
|
|
7094
7094
|
});
|
|
7095
7095
|
const handleFilterChange = (value) => {
|
|
7096
7096
|
setQueryState((prev) => ({ ...prev, ...value }));
|
|
@@ -7098,7 +7098,7 @@ var QueryFilter = ({
|
|
|
7098
7098
|
};
|
|
7099
7099
|
(0, import_react73.useEffect)(() => {
|
|
7100
7100
|
onSetQuery(queryState);
|
|
7101
|
-
}, [
|
|
7101
|
+
}, []);
|
|
7102
7102
|
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("fieldset", { children: [
|
|
7103
7103
|
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { css: ObjectSearchFilterContainerLabel, children: queryFilterTitle }),
|
|
7104
7104
|
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { css: ObjectSearchFilterContainer, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_design_system40.VerticalRhythm, { children: [
|
|
@@ -7111,15 +7111,15 @@ var QueryFilter = ({
|
|
|
7111
7111
|
disableInlineMenu: true,
|
|
7112
7112
|
id: "qf_searchText",
|
|
7113
7113
|
inputWhenNoVariables: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
7114
|
-
import_design_system40.
|
|
7114
|
+
import_design_system40.DebouncedInputKeywordSearch,
|
|
7115
7115
|
{
|
|
7116
7116
|
id: "qf_searchText",
|
|
7117
7117
|
inputFieldName: searchInputName,
|
|
7118
7118
|
placeholder: searchInputPlaceholderText,
|
|
7119
|
-
onSearchTextChanged: (
|
|
7119
|
+
onSearchTextChanged: (keyword) => handleFilterChange({ keyword }),
|
|
7120
7120
|
disabledFieldSubmission: true,
|
|
7121
|
-
|
|
7122
|
-
|
|
7121
|
+
delay: 300,
|
|
7122
|
+
defaultValue: queryState.keyword
|
|
7123
7123
|
}
|
|
7124
7124
|
)
|
|
7125
7125
|
}
|
|
@@ -7139,13 +7139,8 @@ var QueryFilter = ({
|
|
|
7139
7139
|
id: "qf_contentType",
|
|
7140
7140
|
label: contentTypeLabel,
|
|
7141
7141
|
showLabel: false,
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
...contentTypeOptions ? contentTypeOptions.map((option) => {
|
|
7145
|
-
var _a2;
|
|
7146
|
-
return { id: option.id, label: (_a2 = option.label) != null ? _a2 : option.name, name: option.name };
|
|
7147
|
-
}) : []
|
|
7148
|
-
],
|
|
7142
|
+
defaultOption: requireContentType ? void 0 : typeSelectorAllTypesOptionText,
|
|
7143
|
+
options: contentTypeOptions != null ? contentTypeOptions : [],
|
|
7149
7144
|
onChange: (e) => handleFilterChange({ contentType: e.target.value }),
|
|
7150
7145
|
value: queryState.contentType
|
|
7151
7146
|
}
|
|
@@ -7190,16 +7185,8 @@ var QueryFilter = ({
|
|
|
7190
7185
|
label: sortLabel,
|
|
7191
7186
|
id: "qf_sortBy",
|
|
7192
7187
|
showLabel: false,
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
label: "Select a sort",
|
|
7196
|
-
id: ""
|
|
7197
|
-
},
|
|
7198
|
-
...sortOptions ? sortOptions.map((option) => {
|
|
7199
|
-
var _a2;
|
|
7200
|
-
return { id: option.id, name: option.name, label: (_a2 = option.label) != null ? _a2 : option.name };
|
|
7201
|
-
}) : []
|
|
7202
|
-
],
|
|
7188
|
+
defaultOption: "Select a sort",
|
|
7189
|
+
options: sortOptions != null ? sortOptions : [],
|
|
7203
7190
|
onChange: (e) => handleFilterChange({ sortBy: e.target.value }),
|
|
7204
7191
|
value: queryState.sortBy
|
|
7205
7192
|
}
|
|
@@ -7220,12 +7207,7 @@ var QueryFilter = ({
|
|
|
7220
7207
|
label: sortOrderLabel,
|
|
7221
7208
|
id: "qf_sortOrder",
|
|
7222
7209
|
showLabel: false,
|
|
7223
|
-
options: [
|
|
7224
|
-
...sortOrderOptions ? sortOrderOptions.map((option) => {
|
|
7225
|
-
var _a2;
|
|
7226
|
-
return { value: option.id, label: (_a2 = option.label) != null ? _a2 : option.name, name: option.name };
|
|
7227
|
-
}) : []
|
|
7228
|
-
],
|
|
7210
|
+
options: sortOrderOptions != null ? sortOrderOptions : [],
|
|
7229
7211
|
onChange: (e) => handleFilterChange({ sortOrder: e.target.value }),
|
|
7230
7212
|
value: queryState.sortOrder
|
|
7231
7213
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -6515,7 +6515,7 @@ var DefaultResultList = () => {
|
|
|
6515
6515
|
};
|
|
6516
6516
|
|
|
6517
6517
|
// src/components/ObjectSearch/ObjectSearchFilter.tsx
|
|
6518
|
-
import {
|
|
6518
|
+
import { DebouncedInputKeywordSearch, InputSelect as InputSelect6 } from "@uniformdev/design-system";
|
|
6519
6519
|
import { useMemo as useMemo15, useState as useState17 } from "react";
|
|
6520
6520
|
|
|
6521
6521
|
// src/components/ObjectSearch/styles/ObjectSearchFilterContainer.styles.ts
|
|
@@ -6589,14 +6589,14 @@ var ObjectSearchFilter = ({
|
|
|
6589
6589
|
}
|
|
6590
6590
|
) : null,
|
|
6591
6591
|
/* @__PURE__ */ jsx62(
|
|
6592
|
-
|
|
6592
|
+
DebouncedInputKeywordSearch,
|
|
6593
6593
|
{
|
|
6594
6594
|
inputFieldName: searchInputName,
|
|
6595
6595
|
placeholder: searchInputPlaceholderText,
|
|
6596
|
-
onSearchTextChanged: (
|
|
6596
|
+
onSearchTextChanged: (keyword) => handleFilterChange({ keyword }),
|
|
6597
6597
|
disabledFieldSubmission: true,
|
|
6598
|
-
|
|
6599
|
-
|
|
6598
|
+
defaultValue: searchState.keyword,
|
|
6599
|
+
delay: 300
|
|
6600
6600
|
}
|
|
6601
6601
|
)
|
|
6602
6602
|
]
|
|
@@ -6920,7 +6920,7 @@ function ObjectSearchResultList({
|
|
|
6920
6920
|
}
|
|
6921
6921
|
|
|
6922
6922
|
// src/components/ObjectSearch/QueryFilter.tsx
|
|
6923
|
-
import {
|
|
6923
|
+
import { DebouncedInputKeywordSearch as DebouncedInputKeywordSearch2, Input as Input5, InputSelect as InputSelect7, VerticalRhythm as VerticalRhythm3 } from "@uniformdev/design-system";
|
|
6924
6924
|
import { useEffect as useEffect16, useState as useState18 } from "react";
|
|
6925
6925
|
import { jsx as jsx67, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
6926
6926
|
var QueryFilter = ({
|
|
@@ -6955,10 +6955,10 @@ var QueryFilter = ({
|
|
|
6955
6955
|
const { query, onSetQuery } = useObjectSearchContext();
|
|
6956
6956
|
const [queryState, setQueryState] = useState18({
|
|
6957
6957
|
contentType: (_a = query.contentType) != null ? _a : "",
|
|
6958
|
-
keyword: (_b = query.
|
|
6959
|
-
count: countValue
|
|
6960
|
-
sortBy: (_c =
|
|
6961
|
-
sortOrder: (_d =
|
|
6958
|
+
keyword: (_b = query.keyword) != null ? _b : "",
|
|
6959
|
+
count: countValue,
|
|
6960
|
+
sortBy: (_c = query.sortBy) != null ? _c : "",
|
|
6961
|
+
sortOrder: (_d = query.sortOrder) != null ? _d : ""
|
|
6962
6962
|
});
|
|
6963
6963
|
const handleFilterChange = (value) => {
|
|
6964
6964
|
setQueryState((prev) => ({ ...prev, ...value }));
|
|
@@ -6966,7 +6966,7 @@ var QueryFilter = ({
|
|
|
6966
6966
|
};
|
|
6967
6967
|
useEffect16(() => {
|
|
6968
6968
|
onSetQuery(queryState);
|
|
6969
|
-
}, [
|
|
6969
|
+
}, []);
|
|
6970
6970
|
return /* @__PURE__ */ jsxs41("fieldset", { children: [
|
|
6971
6971
|
/* @__PURE__ */ jsx67("span", { css: ObjectSearchFilterContainerLabel, children: queryFilterTitle }),
|
|
6972
6972
|
/* @__PURE__ */ jsx67("div", { css: ObjectSearchFilterContainer, children: /* @__PURE__ */ jsxs41(VerticalRhythm3, { children: [
|
|
@@ -6979,15 +6979,15 @@ var QueryFilter = ({
|
|
|
6979
6979
|
disableInlineMenu: true,
|
|
6980
6980
|
id: "qf_searchText",
|
|
6981
6981
|
inputWhenNoVariables: /* @__PURE__ */ jsx67(
|
|
6982
|
-
|
|
6982
|
+
DebouncedInputKeywordSearch2,
|
|
6983
6983
|
{
|
|
6984
6984
|
id: "qf_searchText",
|
|
6985
6985
|
inputFieldName: searchInputName,
|
|
6986
6986
|
placeholder: searchInputPlaceholderText,
|
|
6987
|
-
onSearchTextChanged: (
|
|
6987
|
+
onSearchTextChanged: (keyword) => handleFilterChange({ keyword }),
|
|
6988
6988
|
disabledFieldSubmission: true,
|
|
6989
|
-
|
|
6990
|
-
|
|
6989
|
+
delay: 300,
|
|
6990
|
+
defaultValue: queryState.keyword
|
|
6991
6991
|
}
|
|
6992
6992
|
)
|
|
6993
6993
|
}
|
|
@@ -7007,13 +7007,8 @@ var QueryFilter = ({
|
|
|
7007
7007
|
id: "qf_contentType",
|
|
7008
7008
|
label: contentTypeLabel,
|
|
7009
7009
|
showLabel: false,
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
...contentTypeOptions ? contentTypeOptions.map((option) => {
|
|
7013
|
-
var _a2;
|
|
7014
|
-
return { id: option.id, label: (_a2 = option.label) != null ? _a2 : option.name, name: option.name };
|
|
7015
|
-
}) : []
|
|
7016
|
-
],
|
|
7010
|
+
defaultOption: requireContentType ? void 0 : typeSelectorAllTypesOptionText,
|
|
7011
|
+
options: contentTypeOptions != null ? contentTypeOptions : [],
|
|
7017
7012
|
onChange: (e) => handleFilterChange({ contentType: e.target.value }),
|
|
7018
7013
|
value: queryState.contentType
|
|
7019
7014
|
}
|
|
@@ -7058,16 +7053,8 @@ var QueryFilter = ({
|
|
|
7058
7053
|
label: sortLabel,
|
|
7059
7054
|
id: "qf_sortBy",
|
|
7060
7055
|
showLabel: false,
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
label: "Select a sort",
|
|
7064
|
-
id: ""
|
|
7065
|
-
},
|
|
7066
|
-
...sortOptions ? sortOptions.map((option) => {
|
|
7067
|
-
var _a2;
|
|
7068
|
-
return { id: option.id, name: option.name, label: (_a2 = option.label) != null ? _a2 : option.name };
|
|
7069
|
-
}) : []
|
|
7070
|
-
],
|
|
7056
|
+
defaultOption: "Select a sort",
|
|
7057
|
+
options: sortOptions != null ? sortOptions : [],
|
|
7071
7058
|
onChange: (e) => handleFilterChange({ sortBy: e.target.value }),
|
|
7072
7059
|
value: queryState.sortBy
|
|
7073
7060
|
}
|
|
@@ -7088,12 +7075,7 @@ var QueryFilter = ({
|
|
|
7088
7075
|
label: sortOrderLabel,
|
|
7089
7076
|
id: "qf_sortOrder",
|
|
7090
7077
|
showLabel: false,
|
|
7091
|
-
options: [
|
|
7092
|
-
...sortOrderOptions ? sortOrderOptions.map((option) => {
|
|
7093
|
-
var _a2;
|
|
7094
|
-
return { value: option.id, label: (_a2 = option.label) != null ? _a2 : option.name, name: option.name };
|
|
7095
|
-
}) : []
|
|
7096
|
-
],
|
|
7078
|
+
options: sortOrderOptions != null ? sortOrderOptions : [],
|
|
7097
7079
|
onChange: (e) => handleFilterChange({ sortOrder: e.target.value }),
|
|
7098
7080
|
value: queryState.sortOrder
|
|
7099
7081
|
}
|
|
@@ -7198,7 +7180,7 @@ import {
|
|
|
7198
7180
|
Heading,
|
|
7199
7181
|
Input as Input6,
|
|
7200
7182
|
InputComboBox,
|
|
7201
|
-
InputKeywordSearch as
|
|
7183
|
+
InputKeywordSearch as InputKeywordSearch2,
|
|
7202
7184
|
InputSelect as InputSelect8,
|
|
7203
7185
|
InputToggle,
|
|
7204
7186
|
Label,
|
|
@@ -7252,7 +7234,7 @@ export {
|
|
|
7252
7234
|
icons_exports as Icons,
|
|
7253
7235
|
Input6 as Input,
|
|
7254
7236
|
InputComboBox,
|
|
7255
|
-
|
|
7237
|
+
InputKeywordSearch2 as InputKeywordSearch,
|
|
7256
7238
|
InputSelect8 as InputSelect,
|
|
7257
7239
|
InputToggle,
|
|
7258
7240
|
InputVariables,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.114.
|
|
3
|
+
"version": "19.114.1-alpha.7+205e9240f9",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"@lexical/selection": "^0.12.0",
|
|
51
51
|
"@lexical/utils": "^0.12.0",
|
|
52
52
|
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v4.10.1/react-icons-all-files-4.10.1.tgz",
|
|
53
|
-
"@uniformdev/canvas": "19.114.
|
|
54
|
-
"@uniformdev/design-system": "19.114.
|
|
55
|
-
"@uniformdev/mesh-sdk": "19.114.
|
|
53
|
+
"@uniformdev/canvas": "19.114.1-alpha.7+205e9240f9",
|
|
54
|
+
"@uniformdev/design-system": "19.114.1-alpha.7+205e9240f9",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.114.1-alpha.7+205e9240f9",
|
|
56
56
|
"dequal": "^2.0.3",
|
|
57
57
|
"lexical": "^0.12.0",
|
|
58
58
|
"mitt": "^3.0.0",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "205e9240f95b7c75d2cdaefb5588c56b8c1e9368"
|
|
90
90
|
}
|