@uniformdev/mesh-sdk-react 19.91.0 → 19.92.2
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 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +6 -9
- package/dist/index.js +6 -9
- package/dist/index.mjs +6 -9
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1203,9 +1203,10 @@ type ObjectSearchFilterProps = {
|
|
|
1203
1203
|
selectLabel?: string;
|
|
1204
1204
|
/** sets the select input options, if empty - only keyword search field will be rendered */
|
|
1205
1205
|
selectOptions?: Array<{
|
|
1206
|
-
id
|
|
1206
|
+
id?: string;
|
|
1207
1207
|
name?: string;
|
|
1208
1208
|
label: string;
|
|
1209
|
+
value?: string;
|
|
1209
1210
|
}>;
|
|
1210
1211
|
/** sets the search input name value
|
|
1211
1212
|
* @default 'searchText'
|
package/dist/index.d.ts
CHANGED
|
@@ -1203,9 +1203,10 @@ type ObjectSearchFilterProps = {
|
|
|
1203
1203
|
selectLabel?: string;
|
|
1204
1204
|
/** sets the select input options, if empty - only keyword search field will be rendered */
|
|
1205
1205
|
selectOptions?: Array<{
|
|
1206
|
-
id
|
|
1206
|
+
id?: string;
|
|
1207
1207
|
name?: string;
|
|
1208
1208
|
label: string;
|
|
1209
|
+
value?: string;
|
|
1209
1210
|
}>;
|
|
1210
1211
|
/** sets the search input name value
|
|
1211
1212
|
* @default 'searchText'
|
package/dist/index.esm.js
CHANGED
|
@@ -4355,8 +4355,8 @@ function VariableField({
|
|
|
4355
4355
|
buttonProps: isActive ? { "aria-pressed": "true" } : void 0
|
|
4356
4356
|
}
|
|
4357
4357
|
) : null;
|
|
4358
|
-
return /* @__PURE__ */ jsxs20("div", { children: [
|
|
4359
|
-
/* @__PURE__ */ jsxs20("label", { htmlFor: id, css: labelText, children: [
|
|
4358
|
+
return /* @__PURE__ */ jsxs20("div", { "data-testid": "variable-field", children: [
|
|
4359
|
+
/* @__PURE__ */ jsxs20("label", { htmlFor: id, css: labelText, "data-testid": "field-name", children: [
|
|
4360
4360
|
variableSelector,
|
|
4361
4361
|
/* @__PURE__ */ jsx36("span", { children: label })
|
|
4362
4362
|
] }),
|
|
@@ -6546,10 +6546,7 @@ var ObjectSearchFilter = ({
|
|
|
6546
6546
|
}
|
|
6547
6547
|
return [
|
|
6548
6548
|
...!requireContentType ? [{ value: "any", label: typeSelectorAllTypesOptionText }] : [],
|
|
6549
|
-
...selectOptions ? selectOptions
|
|
6550
|
-
var _a2;
|
|
6551
|
-
return { name: option == null ? void 0 : option.name, label: (_a2 = option.label) != null ? _a2 : option == null ? void 0 : option.name, id: option.id };
|
|
6552
|
-
}) : []
|
|
6549
|
+
...selectOptions != null ? selectOptions : []
|
|
6553
6550
|
];
|
|
6554
6551
|
}, [requireContentType, typeSelectorAllTypesOptionText, selectOptions]);
|
|
6555
6552
|
const shouldRenderSelect = memoizedSelectOptions.length > 0;
|
|
@@ -6743,13 +6740,13 @@ var ObjectSearchResultItem = ({
|
|
|
6743
6740
|
onSelectItem({ id, title: id });
|
|
6744
6741
|
onRemove == null ? void 0 : onRemove();
|
|
6745
6742
|
};
|
|
6746
|
-
return /* @__PURE__ */ jsxs39("div", { css: ObjectSearchResultItemContainer, children: [
|
|
6743
|
+
return /* @__PURE__ */ jsxs39("div", { css: ObjectSearchResultItemContainer, "data-testid": "search-result-item", children: [
|
|
6747
6744
|
disableDnD ? null : /* @__PURE__ */ jsx64("div", { role: "presentation", className: "drag-handle", css: ObjectSearchDragHandle }),
|
|
6748
6745
|
/* @__PURE__ */ jsx64("div", { children: /* @__PURE__ */ jsxs39("div", { css: ObjectSearchContentContainer, children: [
|
|
6749
6746
|
!imageUrl ? null : /* @__PURE__ */ jsx64("img", { src: imageUrl, alt: `Thumbnail for ${title}`, css: ObjectSearchImage }),
|
|
6750
6747
|
/* @__PURE__ */ jsxs39("div", { children: [
|
|
6751
|
-
/* @__PURE__ */ jsx64("span", { css: ObjectSearchResultItemSubtitle, children: formatedContentType }),
|
|
6752
|
-
/* @__PURE__ */ jsxs39("span", { role: "heading", css: ObjectSearchResultItemTitle, children: [
|
|
6748
|
+
/* @__PURE__ */ jsx64("span", { css: ObjectSearchResultItemSubtitle, "data-testid": "sub-title", children: formatedContentType }),
|
|
6749
|
+
/* @__PURE__ */ jsxs39("span", { role: "heading", css: ObjectSearchResultItemTitle, "data-testid": "title", children: [
|
|
6753
6750
|
title != null ? title : name,
|
|
6754
6751
|
!popoverData ? null : /* @__PURE__ */ jsx64(Popover2, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, children: popoverData })
|
|
6755
6752
|
] }),
|
package/dist/index.js
CHANGED
|
@@ -4533,8 +4533,8 @@ function VariableField({
|
|
|
4533
4533
|
buttonProps: isActive ? { "aria-pressed": "true" } : void 0
|
|
4534
4534
|
}
|
|
4535
4535
|
) : null;
|
|
4536
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
|
|
4537
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("label", { htmlFor: id, css: labelText, children: [
|
|
4536
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { "data-testid": "variable-field", children: [
|
|
4537
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("label", { htmlFor: id, css: labelText, "data-testid": "field-name", children: [
|
|
4538
4538
|
variableSelector,
|
|
4539
4539
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: label })
|
|
4540
4540
|
] }),
|
|
@@ -6677,10 +6677,7 @@ var ObjectSearchFilter = ({
|
|
|
6677
6677
|
}
|
|
6678
6678
|
return [
|
|
6679
6679
|
...!requireContentType ? [{ value: "any", label: typeSelectorAllTypesOptionText }] : [],
|
|
6680
|
-
...selectOptions ? selectOptions
|
|
6681
|
-
var _a2;
|
|
6682
|
-
return { name: option == null ? void 0 : option.name, label: (_a2 = option.label) != null ? _a2 : option == null ? void 0 : option.name, id: option.id };
|
|
6683
|
-
}) : []
|
|
6680
|
+
...selectOptions != null ? selectOptions : []
|
|
6684
6681
|
];
|
|
6685
6682
|
}, [requireContentType, typeSelectorAllTypesOptionText, selectOptions]);
|
|
6686
6683
|
const shouldRenderSelect = memoizedSelectOptions.length > 0;
|
|
@@ -6874,13 +6871,13 @@ var ObjectSearchResultItem = ({
|
|
|
6874
6871
|
onSelectItem({ id, title: id });
|
|
6875
6872
|
onRemove == null ? void 0 : onRemove();
|
|
6876
6873
|
};
|
|
6877
|
-
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { css: ObjectSearchResultItemContainer, children: [
|
|
6874
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { css: ObjectSearchResultItemContainer, "data-testid": "search-result-item", children: [
|
|
6878
6875
|
disableDnD ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { role: "presentation", className: "drag-handle", css: ObjectSearchDragHandle }),
|
|
6879
6876
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { css: ObjectSearchContentContainer, children: [
|
|
6880
6877
|
!imageUrl ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("img", { src: imageUrl, alt: `Thumbnail for ${title}`, css: ObjectSearchImage }),
|
|
6881
6878
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { children: [
|
|
6882
|
-
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { css: ObjectSearchResultItemSubtitle, children: formatedContentType }),
|
|
6883
|
-
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { role: "heading", css: ObjectSearchResultItemTitle, children: [
|
|
6879
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { css: ObjectSearchResultItemSubtitle, "data-testid": "sub-title", children: formatedContentType }),
|
|
6880
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { role: "heading", css: ObjectSearchResultItemTitle, "data-testid": "title", children: [
|
|
6884
6881
|
title != null ? title : name,
|
|
6885
6882
|
!popoverData ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_design_system38.Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, children: popoverData })
|
|
6886
6883
|
] }),
|
package/dist/index.mjs
CHANGED
|
@@ -4355,8 +4355,8 @@ function VariableField({
|
|
|
4355
4355
|
buttonProps: isActive ? { "aria-pressed": "true" } : void 0
|
|
4356
4356
|
}
|
|
4357
4357
|
) : null;
|
|
4358
|
-
return /* @__PURE__ */ jsxs20("div", { children: [
|
|
4359
|
-
/* @__PURE__ */ jsxs20("label", { htmlFor: id, css: labelText, children: [
|
|
4358
|
+
return /* @__PURE__ */ jsxs20("div", { "data-testid": "variable-field", children: [
|
|
4359
|
+
/* @__PURE__ */ jsxs20("label", { htmlFor: id, css: labelText, "data-testid": "field-name", children: [
|
|
4360
4360
|
variableSelector,
|
|
4361
4361
|
/* @__PURE__ */ jsx36("span", { children: label })
|
|
4362
4362
|
] }),
|
|
@@ -6546,10 +6546,7 @@ var ObjectSearchFilter = ({
|
|
|
6546
6546
|
}
|
|
6547
6547
|
return [
|
|
6548
6548
|
...!requireContentType ? [{ value: "any", label: typeSelectorAllTypesOptionText }] : [],
|
|
6549
|
-
...selectOptions ? selectOptions
|
|
6550
|
-
var _a2;
|
|
6551
|
-
return { name: option == null ? void 0 : option.name, label: (_a2 = option.label) != null ? _a2 : option == null ? void 0 : option.name, id: option.id };
|
|
6552
|
-
}) : []
|
|
6549
|
+
...selectOptions != null ? selectOptions : []
|
|
6553
6550
|
];
|
|
6554
6551
|
}, [requireContentType, typeSelectorAllTypesOptionText, selectOptions]);
|
|
6555
6552
|
const shouldRenderSelect = memoizedSelectOptions.length > 0;
|
|
@@ -6743,13 +6740,13 @@ var ObjectSearchResultItem = ({
|
|
|
6743
6740
|
onSelectItem({ id, title: id });
|
|
6744
6741
|
onRemove == null ? void 0 : onRemove();
|
|
6745
6742
|
};
|
|
6746
|
-
return /* @__PURE__ */ jsxs39("div", { css: ObjectSearchResultItemContainer, children: [
|
|
6743
|
+
return /* @__PURE__ */ jsxs39("div", { css: ObjectSearchResultItemContainer, "data-testid": "search-result-item", children: [
|
|
6747
6744
|
disableDnD ? null : /* @__PURE__ */ jsx64("div", { role: "presentation", className: "drag-handle", css: ObjectSearchDragHandle }),
|
|
6748
6745
|
/* @__PURE__ */ jsx64("div", { children: /* @__PURE__ */ jsxs39("div", { css: ObjectSearchContentContainer, children: [
|
|
6749
6746
|
!imageUrl ? null : /* @__PURE__ */ jsx64("img", { src: imageUrl, alt: `Thumbnail for ${title}`, css: ObjectSearchImage }),
|
|
6750
6747
|
/* @__PURE__ */ jsxs39("div", { children: [
|
|
6751
|
-
/* @__PURE__ */ jsx64("span", { css: ObjectSearchResultItemSubtitle, children: formatedContentType }),
|
|
6752
|
-
/* @__PURE__ */ jsxs39("span", { role: "heading", css: ObjectSearchResultItemTitle, children: [
|
|
6748
|
+
/* @__PURE__ */ jsx64("span", { css: ObjectSearchResultItemSubtitle, "data-testid": "sub-title", children: formatedContentType }),
|
|
6749
|
+
/* @__PURE__ */ jsxs39("span", { role: "heading", css: ObjectSearchResultItemTitle, "data-testid": "title", children: [
|
|
6753
6750
|
title != null ? title : name,
|
|
6754
6751
|
!popoverData ? null : /* @__PURE__ */ jsx64(Popover2, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, children: popoverData })
|
|
6755
6752
|
] }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.92.2",
|
|
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.92.2",
|
|
54
|
+
"@uniformdev/design-system": "19.92.2",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.92.2",
|
|
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": "8a0bea83eef2d7353758902ed61920b39187c00a"
|
|
90
90
|
}
|