@uniformdev/mesh-sdk-react 19.115.1-alpha.4 → 19.115.1-alpha.6
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 +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.esm.js +8 -10
- package/dist/index.js +8 -10
- package/dist/index.mjs +8 -10
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1460,8 +1460,10 @@ type QueryFilterSearchProps = {
|
|
|
1460
1460
|
sortOrder: string;
|
|
1461
1461
|
};
|
|
1462
1462
|
type QueryFilterSelectionOptionProps = Array<{
|
|
1463
|
-
|
|
1464
|
-
|
|
1463
|
+
/** @deprecated please use value instead */
|
|
1464
|
+
id?: string;
|
|
1465
|
+
/** @deprecated please use value or label instead */
|
|
1466
|
+
name?: string;
|
|
1465
1467
|
/** contains id or machine values. will be used as value attribute in <option> */
|
|
1466
1468
|
value?: string;
|
|
1467
1469
|
/** Contains human-readable display name for select options.
|
|
@@ -1489,10 +1491,11 @@ type QueryFilterProps<TSelectOptions extends QueryFilterSelectionOptionProps = Q
|
|
|
1489
1491
|
* @default 'Count'
|
|
1490
1492
|
*/
|
|
1491
1493
|
countLabel?: string;
|
|
1492
|
-
/** sets the count value or items to show
|
|
1494
|
+
/** sets the count value or items to show. As a string you can pass dynamic variables ${countFromQuery} for example
|
|
1493
1495
|
* @default 5
|
|
1496
|
+
* @deprecated please use ObjectSearchProviderProps['defaultQuery'] to pass initial count value
|
|
1494
1497
|
*/
|
|
1495
|
-
countValue?: number;
|
|
1498
|
+
countValue?: number | string;
|
|
1496
1499
|
/** sets the sort label text
|
|
1497
1500
|
* @default 'Sort'
|
|
1498
1501
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1460,8 +1460,10 @@ type QueryFilterSearchProps = {
|
|
|
1460
1460
|
sortOrder: string;
|
|
1461
1461
|
};
|
|
1462
1462
|
type QueryFilterSelectionOptionProps = Array<{
|
|
1463
|
-
|
|
1464
|
-
|
|
1463
|
+
/** @deprecated please use value instead */
|
|
1464
|
+
id?: string;
|
|
1465
|
+
/** @deprecated please use value or label instead */
|
|
1466
|
+
name?: string;
|
|
1465
1467
|
/** contains id or machine values. will be used as value attribute in <option> */
|
|
1466
1468
|
value?: string;
|
|
1467
1469
|
/** Contains human-readable display name for select options.
|
|
@@ -1489,10 +1491,11 @@ type QueryFilterProps<TSelectOptions extends QueryFilterSelectionOptionProps = Q
|
|
|
1489
1491
|
* @default 'Count'
|
|
1490
1492
|
*/
|
|
1491
1493
|
countLabel?: string;
|
|
1492
|
-
/** sets the count value or items to show
|
|
1494
|
+
/** sets the count value or items to show. As a string you can pass dynamic variables ${countFromQuery} for example
|
|
1493
1495
|
* @default 5
|
|
1496
|
+
* @deprecated please use ObjectSearchProviderProps['defaultQuery'] to pass initial count value
|
|
1494
1497
|
*/
|
|
1495
|
-
countValue?: number;
|
|
1498
|
+
countValue?: number | string;
|
|
1496
1499
|
/** sets the sort label text
|
|
1497
1500
|
* @default 'Sort'
|
|
1498
1501
|
*/
|
package/dist/index.esm.js
CHANGED
|
@@ -6939,26 +6939,24 @@ var QueryFilter = ({
|
|
|
6939
6939
|
sortOrderLabel = "Sort Order",
|
|
6940
6940
|
sortOrderOptions = [
|
|
6941
6941
|
{
|
|
6942
|
-
|
|
6943
|
-
id: "asc",
|
|
6942
|
+
value: "asc",
|
|
6944
6943
|
label: "Ascending"
|
|
6945
6944
|
},
|
|
6946
6945
|
{
|
|
6947
|
-
|
|
6948
|
-
id: "desc",
|
|
6946
|
+
value: "desc",
|
|
6949
6947
|
label: "Descending"
|
|
6950
6948
|
}
|
|
6951
6949
|
],
|
|
6952
6950
|
children
|
|
6953
6951
|
}) => {
|
|
6954
|
-
var _a, _b, _c, _d, _e, _f;
|
|
6952
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6955
6953
|
const { query, onSetQuery } = useObjectSearchContext();
|
|
6956
6954
|
const [queryState, setQueryState] = useState18({
|
|
6957
6955
|
contentType: (_a = query.contentType) != null ? _a : "",
|
|
6958
6956
|
keyword: (_b = query.keyword) != null ? _b : "",
|
|
6959
|
-
count: countValue,
|
|
6960
|
-
sortBy: (
|
|
6961
|
-
sortOrder: (
|
|
6957
|
+
count: (_c = query.count) != null ? _c : countValue,
|
|
6958
|
+
sortBy: (_d = query.sortBy) != null ? _d : "",
|
|
6959
|
+
sortOrder: (_e = query.sortOrder) != null ? _e : ""
|
|
6962
6960
|
});
|
|
6963
6961
|
const handleFilterChange = (value) => {
|
|
6964
6962
|
setQueryState((prev) => ({ ...prev, ...value }));
|
|
@@ -6974,7 +6972,7 @@ var QueryFilter = ({
|
|
|
6974
6972
|
InputVariables,
|
|
6975
6973
|
{
|
|
6976
6974
|
label: searchInputLabel,
|
|
6977
|
-
value: (
|
|
6975
|
+
value: (_f = queryState.keyword) != null ? _f : "",
|
|
6978
6976
|
onChange: (newQuery) => handleFilterChange({ keyword: newQuery }),
|
|
6979
6977
|
disableInlineMenu: true,
|
|
6980
6978
|
id: "qf_searchText",
|
|
@@ -6998,7 +6996,7 @@ var QueryFilter = ({
|
|
|
6998
6996
|
{
|
|
6999
6997
|
label: contentTypeLabel,
|
|
7000
6998
|
id: "qf_contentType",
|
|
7001
|
-
value: (
|
|
6999
|
+
value: (_g = queryState.contentType) != null ? _g : "",
|
|
7002
7000
|
onChange: (newType) => handleFilterChange({ contentType: newType }),
|
|
7003
7001
|
disableInlineMenu: true,
|
|
7004
7002
|
inputWhenNoVariables: /* @__PURE__ */ jsx67(
|
package/dist/index.js
CHANGED
|
@@ -7071,26 +7071,24 @@ var QueryFilter = ({
|
|
|
7071
7071
|
sortOrderLabel = "Sort Order",
|
|
7072
7072
|
sortOrderOptions = [
|
|
7073
7073
|
{
|
|
7074
|
-
|
|
7075
|
-
id: "asc",
|
|
7074
|
+
value: "asc",
|
|
7076
7075
|
label: "Ascending"
|
|
7077
7076
|
},
|
|
7078
7077
|
{
|
|
7079
|
-
|
|
7080
|
-
id: "desc",
|
|
7078
|
+
value: "desc",
|
|
7081
7079
|
label: "Descending"
|
|
7082
7080
|
}
|
|
7083
7081
|
],
|
|
7084
7082
|
children
|
|
7085
7083
|
}) => {
|
|
7086
|
-
var _a, _b, _c, _d, _e, _f;
|
|
7084
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
7087
7085
|
const { query, onSetQuery } = useObjectSearchContext();
|
|
7088
7086
|
const [queryState, setQueryState] = (0, import_react73.useState)({
|
|
7089
7087
|
contentType: (_a = query.contentType) != null ? _a : "",
|
|
7090
7088
|
keyword: (_b = query.keyword) != null ? _b : "",
|
|
7091
|
-
count: countValue,
|
|
7092
|
-
sortBy: (
|
|
7093
|
-
sortOrder: (
|
|
7089
|
+
count: (_c = query.count) != null ? _c : countValue,
|
|
7090
|
+
sortBy: (_d = query.sortBy) != null ? _d : "",
|
|
7091
|
+
sortOrder: (_e = query.sortOrder) != null ? _e : ""
|
|
7094
7092
|
});
|
|
7095
7093
|
const handleFilterChange = (value) => {
|
|
7096
7094
|
setQueryState((prev) => ({ ...prev, ...value }));
|
|
@@ -7106,7 +7104,7 @@ var QueryFilter = ({
|
|
|
7106
7104
|
InputVariables,
|
|
7107
7105
|
{
|
|
7108
7106
|
label: searchInputLabel,
|
|
7109
|
-
value: (
|
|
7107
|
+
value: (_f = queryState.keyword) != null ? _f : "",
|
|
7110
7108
|
onChange: (newQuery) => handleFilterChange({ keyword: newQuery }),
|
|
7111
7109
|
disableInlineMenu: true,
|
|
7112
7110
|
id: "qf_searchText",
|
|
@@ -7130,7 +7128,7 @@ var QueryFilter = ({
|
|
|
7130
7128
|
{
|
|
7131
7129
|
label: contentTypeLabel,
|
|
7132
7130
|
id: "qf_contentType",
|
|
7133
|
-
value: (
|
|
7131
|
+
value: (_g = queryState.contentType) != null ? _g : "",
|
|
7134
7132
|
onChange: (newType) => handleFilterChange({ contentType: newType }),
|
|
7135
7133
|
disableInlineMenu: true,
|
|
7136
7134
|
inputWhenNoVariables: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
package/dist/index.mjs
CHANGED
|
@@ -6939,26 +6939,24 @@ var QueryFilter = ({
|
|
|
6939
6939
|
sortOrderLabel = "Sort Order",
|
|
6940
6940
|
sortOrderOptions = [
|
|
6941
6941
|
{
|
|
6942
|
-
|
|
6943
|
-
id: "asc",
|
|
6942
|
+
value: "asc",
|
|
6944
6943
|
label: "Ascending"
|
|
6945
6944
|
},
|
|
6946
6945
|
{
|
|
6947
|
-
|
|
6948
|
-
id: "desc",
|
|
6946
|
+
value: "desc",
|
|
6949
6947
|
label: "Descending"
|
|
6950
6948
|
}
|
|
6951
6949
|
],
|
|
6952
6950
|
children
|
|
6953
6951
|
}) => {
|
|
6954
|
-
var _a, _b, _c, _d, _e, _f;
|
|
6952
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6955
6953
|
const { query, onSetQuery } = useObjectSearchContext();
|
|
6956
6954
|
const [queryState, setQueryState] = useState18({
|
|
6957
6955
|
contentType: (_a = query.contentType) != null ? _a : "",
|
|
6958
6956
|
keyword: (_b = query.keyword) != null ? _b : "",
|
|
6959
|
-
count: countValue,
|
|
6960
|
-
sortBy: (
|
|
6961
|
-
sortOrder: (
|
|
6957
|
+
count: (_c = query.count) != null ? _c : countValue,
|
|
6958
|
+
sortBy: (_d = query.sortBy) != null ? _d : "",
|
|
6959
|
+
sortOrder: (_e = query.sortOrder) != null ? _e : ""
|
|
6962
6960
|
});
|
|
6963
6961
|
const handleFilterChange = (value) => {
|
|
6964
6962
|
setQueryState((prev) => ({ ...prev, ...value }));
|
|
@@ -6974,7 +6972,7 @@ var QueryFilter = ({
|
|
|
6974
6972
|
InputVariables,
|
|
6975
6973
|
{
|
|
6976
6974
|
label: searchInputLabel,
|
|
6977
|
-
value: (
|
|
6975
|
+
value: (_f = queryState.keyword) != null ? _f : "",
|
|
6978
6976
|
onChange: (newQuery) => handleFilterChange({ keyword: newQuery }),
|
|
6979
6977
|
disableInlineMenu: true,
|
|
6980
6978
|
id: "qf_searchText",
|
|
@@ -6998,7 +6996,7 @@ var QueryFilter = ({
|
|
|
6998
6996
|
{
|
|
6999
6997
|
label: contentTypeLabel,
|
|
7000
6998
|
id: "qf_contentType",
|
|
7001
|
-
value: (
|
|
6999
|
+
value: (_g = queryState.contentType) != null ? _g : "",
|
|
7002
7000
|
onChange: (newType) => handleFilterChange({ contentType: newType }),
|
|
7003
7001
|
disableInlineMenu: true,
|
|
7004
7002
|
inputWhenNoVariables: /* @__PURE__ */ jsx67(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.115.1-alpha.
|
|
3
|
+
"version": "19.115.1-alpha.6+3619938c2e",
|
|
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.115.1-alpha.
|
|
54
|
-
"@uniformdev/design-system": "19.115.1-alpha.
|
|
55
|
-
"@uniformdev/mesh-sdk": "19.115.1-alpha.
|
|
53
|
+
"@uniformdev/canvas": "19.115.1-alpha.6+3619938c2e",
|
|
54
|
+
"@uniformdev/design-system": "19.115.1-alpha.6+3619938c2e",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.115.1-alpha.6+3619938c2e",
|
|
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": "3619938c2edc1d93a3143aa67abce7b2a366fb59"
|
|
90
90
|
}
|