@uniformdev/mesh-sdk-react 19.114.1-alpha.7 → 19.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2 -6
- package/dist/index.d.ts +2 -6
- package/dist/index.esm.js +40 -22
- package/dist/index.js +36 -18
- package/dist/index.mjs +40 -22
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1459,16 +1459,12 @@ type QueryFilterSearchProps = {
|
|
|
1459
1459
|
/** sets the sortOrder filter value */
|
|
1460
1460
|
sortOrder: string;
|
|
1461
1461
|
};
|
|
1462
|
-
type
|
|
1462
|
+
type QuertFilterSelectionOptionProps = 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> */
|
|
1469
1465
|
label: string;
|
|
1470
1466
|
}>;
|
|
1471
|
-
type QueryFilterProps<TSelectOptions extends
|
|
1467
|
+
type QueryFilterProps<TSelectOptions extends QuertFilterSelectionOptionProps = QuertFilterSelectionOptionProps> = {
|
|
1472
1468
|
/** sets the query filter title
|
|
1473
1469
|
* @default 'Configure Query'
|
|
1474
1470
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1459,16 +1459,12 @@ type QueryFilterSearchProps = {
|
|
|
1459
1459
|
/** sets the sortOrder filter value */
|
|
1460
1460
|
sortOrder: string;
|
|
1461
1461
|
};
|
|
1462
|
-
type
|
|
1462
|
+
type QuertFilterSelectionOptionProps = 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> */
|
|
1469
1465
|
label: string;
|
|
1470
1466
|
}>;
|
|
1471
|
-
type QueryFilterProps<TSelectOptions extends
|
|
1467
|
+
type QueryFilterProps<TSelectOptions extends QuertFilterSelectionOptionProps = QuertFilterSelectionOptionProps> = {
|
|
1472
1468
|
/** sets the query filter title
|
|
1473
1469
|
* @default 'Configure Query'
|
|
1474
1470
|
*/
|
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 { InputKeywordSearch as InputKeywordSearch2, 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
|
+
InputKeywordSearch2,
|
|
6593
6593
|
{
|
|
6594
6594
|
inputFieldName: searchInputName,
|
|
6595
6595
|
placeholder: searchInputPlaceholderText,
|
|
6596
|
-
onSearchTextChanged: (
|
|
6596
|
+
onSearchTextChanged: (e) => handleFilterChange({ keyword: e }),
|
|
6597
6597
|
disabledFieldSubmission: true,
|
|
6598
|
-
|
|
6599
|
-
|
|
6598
|
+
onClear: () => handleFilterChange({ keyword: "" }),
|
|
6599
|
+
value: searchState.keyword
|
|
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 { Input as Input5, InputKeywordSearch as InputKeywordSearch3, 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.contentType) != null ? _b : "",
|
|
6959
|
+
count: countValue != null ? countValue : 5,
|
|
6960
|
+
sortBy: (_c = sortOptions[0].id) != null ? _c : "",
|
|
6961
|
+
sortOrder: (_d = sortOrderOptions[0].id) != 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
|
+
}, [onSetQuery, queryState]);
|
|
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
|
+
InputKeywordSearch3,
|
|
6983
6983
|
{
|
|
6984
6984
|
id: "qf_searchText",
|
|
6985
6985
|
inputFieldName: searchInputName,
|
|
6986
6986
|
placeholder: searchInputPlaceholderText,
|
|
6987
|
-
onSearchTextChanged: (
|
|
6987
|
+
onSearchTextChanged: (e) => handleFilterChange({ keyword: e }),
|
|
6988
6988
|
disabledFieldSubmission: true,
|
|
6989
|
-
|
|
6990
|
-
|
|
6989
|
+
onClear: () => handleFilterChange({ keyword: "" }),
|
|
6990
|
+
value: queryState.keyword
|
|
6991
6991
|
}
|
|
6992
6992
|
)
|
|
6993
6993
|
}
|
|
@@ -7007,8 +7007,13 @@ var QueryFilter = ({
|
|
|
7007
7007
|
id: "qf_contentType",
|
|
7008
7008
|
label: contentTypeLabel,
|
|
7009
7009
|
showLabel: false,
|
|
7010
|
-
|
|
7011
|
-
|
|
7010
|
+
options: [
|
|
7011
|
+
...!requireContentType ? [{ id: "", label: typeSelectorAllTypesOptionText }] : [],
|
|
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
|
+
],
|
|
7012
7017
|
onChange: (e) => handleFilterChange({ contentType: e.target.value }),
|
|
7013
7018
|
value: queryState.contentType
|
|
7014
7019
|
}
|
|
@@ -7053,8 +7058,16 @@ var QueryFilter = ({
|
|
|
7053
7058
|
label: sortLabel,
|
|
7054
7059
|
id: "qf_sortBy",
|
|
7055
7060
|
showLabel: false,
|
|
7056
|
-
|
|
7057
|
-
|
|
7061
|
+
options: [
|
|
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
|
+
],
|
|
7058
7071
|
onChange: (e) => handleFilterChange({ sortBy: e.target.value }),
|
|
7059
7072
|
value: queryState.sortBy
|
|
7060
7073
|
}
|
|
@@ -7075,7 +7088,12 @@ var QueryFilter = ({
|
|
|
7075
7088
|
label: sortOrderLabel,
|
|
7076
7089
|
id: "qf_sortOrder",
|
|
7077
7090
|
showLabel: false,
|
|
7078
|
-
options:
|
|
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
|
+
],
|
|
7079
7097
|
onChange: (e) => handleFilterChange({ sortOrder: e.target.value }),
|
|
7080
7098
|
value: queryState.sortOrder
|
|
7081
7099
|
}
|
|
@@ -7180,7 +7198,7 @@ import {
|
|
|
7180
7198
|
Heading,
|
|
7181
7199
|
Input as Input6,
|
|
7182
7200
|
InputComboBox,
|
|
7183
|
-
InputKeywordSearch as
|
|
7201
|
+
InputKeywordSearch as InputKeywordSearch4,
|
|
7184
7202
|
InputSelect as InputSelect8,
|
|
7185
7203
|
InputToggle,
|
|
7186
7204
|
Label,
|
|
@@ -7234,7 +7252,7 @@ export {
|
|
|
7234
7252
|
icons_exports as Icons,
|
|
7235
7253
|
Input6 as Input,
|
|
7236
7254
|
InputComboBox,
|
|
7237
|
-
|
|
7255
|
+
InputKeywordSearch4 as InputKeywordSearch,
|
|
7238
7256
|
InputSelect8 as InputSelect,
|
|
7239
7257
|
InputToggle,
|
|
7240
7258
|
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.InputKeywordSearch,
|
|
6725
6725
|
{
|
|
6726
6726
|
inputFieldName: searchInputName,
|
|
6727
6727
|
placeholder: searchInputPlaceholderText,
|
|
6728
|
-
onSearchTextChanged: (
|
|
6728
|
+
onSearchTextChanged: (e) => handleFilterChange({ keyword: e }),
|
|
6729
6729
|
disabledFieldSubmission: true,
|
|
6730
|
-
|
|
6731
|
-
|
|
6730
|
+
onClear: () => handleFilterChange({ keyword: "" }),
|
|
6731
|
+
value: searchState.keyword
|
|
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.contentType) != null ? _b : "",
|
|
7091
|
+
count: countValue != null ? countValue : 5,
|
|
7092
|
+
sortBy: (_c = sortOptions[0].id) != null ? _c : "",
|
|
7093
|
+
sortOrder: (_d = sortOrderOptions[0].id) != 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
|
+
}, [onSetQuery, queryState]);
|
|
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.InputKeywordSearch,
|
|
7115
7115
|
{
|
|
7116
7116
|
id: "qf_searchText",
|
|
7117
7117
|
inputFieldName: searchInputName,
|
|
7118
7118
|
placeholder: searchInputPlaceholderText,
|
|
7119
|
-
onSearchTextChanged: (
|
|
7119
|
+
onSearchTextChanged: (e) => handleFilterChange({ keyword: e }),
|
|
7120
7120
|
disabledFieldSubmission: true,
|
|
7121
|
-
|
|
7122
|
-
|
|
7121
|
+
onClear: () => handleFilterChange({ keyword: "" }),
|
|
7122
|
+
value: queryState.keyword
|
|
7123
7123
|
}
|
|
7124
7124
|
)
|
|
7125
7125
|
}
|
|
@@ -7139,8 +7139,13 @@ var QueryFilter = ({
|
|
|
7139
7139
|
id: "qf_contentType",
|
|
7140
7140
|
label: contentTypeLabel,
|
|
7141
7141
|
showLabel: false,
|
|
7142
|
-
|
|
7143
|
-
|
|
7142
|
+
options: [
|
|
7143
|
+
...!requireContentType ? [{ id: "", label: typeSelectorAllTypesOptionText }] : [],
|
|
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
|
+
],
|
|
7144
7149
|
onChange: (e) => handleFilterChange({ contentType: e.target.value }),
|
|
7145
7150
|
value: queryState.contentType
|
|
7146
7151
|
}
|
|
@@ -7185,8 +7190,16 @@ var QueryFilter = ({
|
|
|
7185
7190
|
label: sortLabel,
|
|
7186
7191
|
id: "qf_sortBy",
|
|
7187
7192
|
showLabel: false,
|
|
7188
|
-
|
|
7189
|
-
|
|
7193
|
+
options: [
|
|
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
|
+
],
|
|
7190
7203
|
onChange: (e) => handleFilterChange({ sortBy: e.target.value }),
|
|
7191
7204
|
value: queryState.sortBy
|
|
7192
7205
|
}
|
|
@@ -7207,7 +7220,12 @@ var QueryFilter = ({
|
|
|
7207
7220
|
label: sortOrderLabel,
|
|
7208
7221
|
id: "qf_sortOrder",
|
|
7209
7222
|
showLabel: false,
|
|
7210
|
-
options:
|
|
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
|
+
],
|
|
7211
7229
|
onChange: (e) => handleFilterChange({ sortOrder: e.target.value }),
|
|
7212
7230
|
value: queryState.sortOrder
|
|
7213
7231
|
}
|
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 { InputKeywordSearch as InputKeywordSearch2, 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
|
+
InputKeywordSearch2,
|
|
6593
6593
|
{
|
|
6594
6594
|
inputFieldName: searchInputName,
|
|
6595
6595
|
placeholder: searchInputPlaceholderText,
|
|
6596
|
-
onSearchTextChanged: (
|
|
6596
|
+
onSearchTextChanged: (e) => handleFilterChange({ keyword: e }),
|
|
6597
6597
|
disabledFieldSubmission: true,
|
|
6598
|
-
|
|
6599
|
-
|
|
6598
|
+
onClear: () => handleFilterChange({ keyword: "" }),
|
|
6599
|
+
value: searchState.keyword
|
|
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 { Input as Input5, InputKeywordSearch as InputKeywordSearch3, 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.contentType) != null ? _b : "",
|
|
6959
|
+
count: countValue != null ? countValue : 5,
|
|
6960
|
+
sortBy: (_c = sortOptions[0].id) != null ? _c : "",
|
|
6961
|
+
sortOrder: (_d = sortOrderOptions[0].id) != 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
|
+
}, [onSetQuery, queryState]);
|
|
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
|
+
InputKeywordSearch3,
|
|
6983
6983
|
{
|
|
6984
6984
|
id: "qf_searchText",
|
|
6985
6985
|
inputFieldName: searchInputName,
|
|
6986
6986
|
placeholder: searchInputPlaceholderText,
|
|
6987
|
-
onSearchTextChanged: (
|
|
6987
|
+
onSearchTextChanged: (e) => handleFilterChange({ keyword: e }),
|
|
6988
6988
|
disabledFieldSubmission: true,
|
|
6989
|
-
|
|
6990
|
-
|
|
6989
|
+
onClear: () => handleFilterChange({ keyword: "" }),
|
|
6990
|
+
value: queryState.keyword
|
|
6991
6991
|
}
|
|
6992
6992
|
)
|
|
6993
6993
|
}
|
|
@@ -7007,8 +7007,13 @@ var QueryFilter = ({
|
|
|
7007
7007
|
id: "qf_contentType",
|
|
7008
7008
|
label: contentTypeLabel,
|
|
7009
7009
|
showLabel: false,
|
|
7010
|
-
|
|
7011
|
-
|
|
7010
|
+
options: [
|
|
7011
|
+
...!requireContentType ? [{ id: "", label: typeSelectorAllTypesOptionText }] : [],
|
|
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
|
+
],
|
|
7012
7017
|
onChange: (e) => handleFilterChange({ contentType: e.target.value }),
|
|
7013
7018
|
value: queryState.contentType
|
|
7014
7019
|
}
|
|
@@ -7053,8 +7058,16 @@ var QueryFilter = ({
|
|
|
7053
7058
|
label: sortLabel,
|
|
7054
7059
|
id: "qf_sortBy",
|
|
7055
7060
|
showLabel: false,
|
|
7056
|
-
|
|
7057
|
-
|
|
7061
|
+
options: [
|
|
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
|
+
],
|
|
7058
7071
|
onChange: (e) => handleFilterChange({ sortBy: e.target.value }),
|
|
7059
7072
|
value: queryState.sortBy
|
|
7060
7073
|
}
|
|
@@ -7075,7 +7088,12 @@ var QueryFilter = ({
|
|
|
7075
7088
|
label: sortOrderLabel,
|
|
7076
7089
|
id: "qf_sortOrder",
|
|
7077
7090
|
showLabel: false,
|
|
7078
|
-
options:
|
|
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
|
+
],
|
|
7079
7097
|
onChange: (e) => handleFilterChange({ sortOrder: e.target.value }),
|
|
7080
7098
|
value: queryState.sortOrder
|
|
7081
7099
|
}
|
|
@@ -7180,7 +7198,7 @@ import {
|
|
|
7180
7198
|
Heading,
|
|
7181
7199
|
Input as Input6,
|
|
7182
7200
|
InputComboBox,
|
|
7183
|
-
InputKeywordSearch as
|
|
7201
|
+
InputKeywordSearch as InputKeywordSearch4,
|
|
7184
7202
|
InputSelect as InputSelect8,
|
|
7185
7203
|
InputToggle,
|
|
7186
7204
|
Label,
|
|
@@ -7234,7 +7252,7 @@ export {
|
|
|
7234
7252
|
icons_exports as Icons,
|
|
7235
7253
|
Input6 as Input,
|
|
7236
7254
|
InputComboBox,
|
|
7237
|
-
|
|
7255
|
+
InputKeywordSearch4 as InputKeywordSearch,
|
|
7238
7256
|
InputSelect8 as InputSelect,
|
|
7239
7257
|
InputToggle,
|
|
7240
7258
|
InputVariables,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.115.0",
|
|
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.
|
|
54
|
-
"@uniformdev/design-system": "19.
|
|
55
|
-
"@uniformdev/mesh-sdk": "19.
|
|
53
|
+
"@uniformdev/canvas": "19.115.0",
|
|
54
|
+
"@uniformdev/design-system": "19.115.0",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.115.0",
|
|
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": "739467c9c4e6daee786fac0f1b7c2bf443243a54"
|
|
90
90
|
}
|