@uniformdev/mesh-sdk-react 20.22.1-alpha.0 → 20.23.1-alpha.5
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 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.esm.js +16 -10
- package/dist/index.js +16 -10
- package/dist/index.mjs +16 -10
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -98,6 +98,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
98
98
|
type: TLocationType;
|
|
99
99
|
}> | Extract<_uniformdev_mesh_sdk.PersonalizationCriteriaLocation<TLocationValue, unknown>, {
|
|
100
100
|
type: TLocationType;
|
|
101
|
+
}> | Extract<_uniformdev_mesh_sdk.DashboardToolLocation<TLocationValue, unknown>, {
|
|
102
|
+
type: TLocationType;
|
|
101
103
|
}> | Extract<_uniformdev_mesh_sdk.ProjectToolLocation<TLocationValue, unknown>, {
|
|
102
104
|
type: TLocationType;
|
|
103
105
|
}>, "setValue"> & {
|
|
@@ -127,6 +129,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
127
129
|
type: TLocationType;
|
|
128
130
|
}> | Extract<_uniformdev_mesh_sdk.PersonalizationCriteriaLocation<TLocationValue, unknown>, {
|
|
129
131
|
type: TLocationType;
|
|
132
|
+
}> | Extract<_uniformdev_mesh_sdk.DashboardToolLocation<TLocationValue, unknown>, {
|
|
133
|
+
type: TLocationType;
|
|
130
134
|
}> | Extract<_uniformdev_mesh_sdk.ProjectToolLocation<TLocationValue, unknown>, {
|
|
131
135
|
type: TLocationType;
|
|
132
136
|
}>)["value"], Parameters<(Extract<_uniformdev_mesh_sdk.AssetLibraryLocation, {
|
|
@@ -155,6 +159,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
155
159
|
type: TLocationType;
|
|
156
160
|
}> | Extract<_uniformdev_mesh_sdk.PersonalizationCriteriaLocation<TLocationValue, unknown>, {
|
|
157
161
|
type: TLocationType;
|
|
162
|
+
}> | Extract<_uniformdev_mesh_sdk.DashboardToolLocation<TLocationValue, unknown>, {
|
|
163
|
+
type: TLocationType;
|
|
158
164
|
}> | Extract<_uniformdev_mesh_sdk.ProjectToolLocation<TLocationValue, unknown>, {
|
|
159
165
|
type: TLocationType;
|
|
160
166
|
}>)["setValue"]>[0]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -98,6 +98,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
98
98
|
type: TLocationType;
|
|
99
99
|
}> | Extract<_uniformdev_mesh_sdk.PersonalizationCriteriaLocation<TLocationValue, unknown>, {
|
|
100
100
|
type: TLocationType;
|
|
101
|
+
}> | Extract<_uniformdev_mesh_sdk.DashboardToolLocation<TLocationValue, unknown>, {
|
|
102
|
+
type: TLocationType;
|
|
101
103
|
}> | Extract<_uniformdev_mesh_sdk.ProjectToolLocation<TLocationValue, unknown>, {
|
|
102
104
|
type: TLocationType;
|
|
103
105
|
}>, "setValue"> & {
|
|
@@ -127,6 +129,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
127
129
|
type: TLocationType;
|
|
128
130
|
}> | Extract<_uniformdev_mesh_sdk.PersonalizationCriteriaLocation<TLocationValue, unknown>, {
|
|
129
131
|
type: TLocationType;
|
|
132
|
+
}> | Extract<_uniformdev_mesh_sdk.DashboardToolLocation<TLocationValue, unknown>, {
|
|
133
|
+
type: TLocationType;
|
|
130
134
|
}> | Extract<_uniformdev_mesh_sdk.ProjectToolLocation<TLocationValue, unknown>, {
|
|
131
135
|
type: TLocationType;
|
|
132
136
|
}>)["value"], Parameters<(Extract<_uniformdev_mesh_sdk.AssetLibraryLocation, {
|
|
@@ -155,6 +159,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
155
159
|
type: TLocationType;
|
|
156
160
|
}> | Extract<_uniformdev_mesh_sdk.PersonalizationCriteriaLocation<TLocationValue, unknown>, {
|
|
157
161
|
type: TLocationType;
|
|
162
|
+
}> | Extract<_uniformdev_mesh_sdk.DashboardToolLocation<TLocationValue, unknown>, {
|
|
163
|
+
type: TLocationType;
|
|
158
164
|
}> | Extract<_uniformdev_mesh_sdk.ProjectToolLocation<TLocationValue, unknown>, {
|
|
159
165
|
type: TLocationType;
|
|
160
166
|
}>)["setValue"]>[0]>;
|
package/dist/index.esm.js
CHANGED
|
@@ -6504,17 +6504,17 @@ var FilterControls = ({
|
|
|
6504
6504
|
const editorRef = useRef9(null);
|
|
6505
6505
|
const variableRefernceCountInSearchTerm = hasReferencedVariables2(searchTerm);
|
|
6506
6506
|
const [idToResetInputVariables, setIdToResetInputVariables] = useState20("data-resource-search-term-input");
|
|
6507
|
-
const [
|
|
6507
|
+
const [localSearchTerm, setLocalSearchTerm] = useState20(searchTerm);
|
|
6508
6508
|
useDebounce7(
|
|
6509
6509
|
() => {
|
|
6510
|
-
setSearchTerm(
|
|
6510
|
+
setSearchTerm(localSearchTerm);
|
|
6511
6511
|
},
|
|
6512
6512
|
300,
|
|
6513
|
-
[
|
|
6513
|
+
[localSearchTerm]
|
|
6514
6514
|
);
|
|
6515
6515
|
useEffect18(() => {
|
|
6516
6516
|
if (searchTerm === "") {
|
|
6517
|
-
|
|
6517
|
+
setLocalSearchTerm("");
|
|
6518
6518
|
setIdToResetInputVariables(`data-resource-search-term-input-${v42()}`);
|
|
6519
6519
|
}
|
|
6520
6520
|
}, [searchTerm]);
|
|
@@ -6540,18 +6540,24 @@ var FilterControls = ({
|
|
|
6540
6540
|
id: idToResetInputVariables,
|
|
6541
6541
|
showMenuPosition: "inline-right",
|
|
6542
6542
|
editorRef,
|
|
6543
|
-
value:
|
|
6544
|
-
onChange: (value) =>
|
|
6543
|
+
value: localSearchTerm,
|
|
6544
|
+
onChange: (value) => setLocalSearchTerm(value != null ? value : ""),
|
|
6545
6545
|
disableVariables: !allowBindingSearchTerm,
|
|
6546
6546
|
inputWhenNoVariables: /* @__PURE__ */ jsx74(
|
|
6547
6547
|
InputKeywordSearch,
|
|
6548
6548
|
{
|
|
6549
6549
|
placeholder: "Search...",
|
|
6550
|
-
onSearchTextChanged: (e) =>
|
|
6551
|
-
value:
|
|
6550
|
+
onSearchTextChanged: (e) => setLocalSearchTerm(e),
|
|
6551
|
+
value: localSearchTerm,
|
|
6552
6552
|
compact: true,
|
|
6553
6553
|
rounded: true,
|
|
6554
|
-
css: SearchInput
|
|
6554
|
+
css: SearchInput,
|
|
6555
|
+
onKeyPress: (e) => {
|
|
6556
|
+
if (e.key === "Enter") {
|
|
6557
|
+
e.preventDefault();
|
|
6558
|
+
e.stopPropagation();
|
|
6559
|
+
}
|
|
6560
|
+
}
|
|
6555
6561
|
}
|
|
6556
6562
|
)
|
|
6557
6563
|
}
|
|
@@ -6561,7 +6567,7 @@ var FilterControls = ({
|
|
|
6561
6567
|
{
|
|
6562
6568
|
css: ClearSearchButtonStyles,
|
|
6563
6569
|
onClick: () => {
|
|
6564
|
-
|
|
6570
|
+
setLocalSearchTerm("");
|
|
6565
6571
|
if (editorRef.current) {
|
|
6566
6572
|
if (editorRef.current.getRootElement() !== document.activeElement) {
|
|
6567
6573
|
editorRef.current.dispatchCommand(CLEAR_EDITOR_COMMAND2, void 0);
|
package/dist/index.js
CHANGED
|
@@ -6569,17 +6569,17 @@ var FilterControls = ({
|
|
|
6569
6569
|
const editorRef = (0, import_react65.useRef)(null);
|
|
6570
6570
|
const variableRefernceCountInSearchTerm = (0, import_canvas10.hasReferencedVariables)(searchTerm);
|
|
6571
6571
|
const [idToResetInputVariables, setIdToResetInputVariables] = (0, import_react65.useState)("data-resource-search-term-input");
|
|
6572
|
-
const [
|
|
6572
|
+
const [localSearchTerm, setLocalSearchTerm] = (0, import_react65.useState)(searchTerm);
|
|
6573
6573
|
(0, import_react_use7.useDebounce)(
|
|
6574
6574
|
() => {
|
|
6575
|
-
setSearchTerm(
|
|
6575
|
+
setSearchTerm(localSearchTerm);
|
|
6576
6576
|
},
|
|
6577
6577
|
300,
|
|
6578
|
-
[
|
|
6578
|
+
[localSearchTerm]
|
|
6579
6579
|
);
|
|
6580
6580
|
(0, import_react65.useEffect)(() => {
|
|
6581
6581
|
if (searchTerm === "") {
|
|
6582
|
-
|
|
6582
|
+
setLocalSearchTerm("");
|
|
6583
6583
|
setIdToResetInputVariables(`data-resource-search-term-input-${(0, import_uuid2.v4)()}`);
|
|
6584
6584
|
}
|
|
6585
6585
|
}, [searchTerm]);
|
|
@@ -6605,18 +6605,24 @@ var FilterControls = ({
|
|
|
6605
6605
|
id: idToResetInputVariables,
|
|
6606
6606
|
showMenuPosition: "inline-right",
|
|
6607
6607
|
editorRef,
|
|
6608
|
-
value:
|
|
6609
|
-
onChange: (value) =>
|
|
6608
|
+
value: localSearchTerm,
|
|
6609
|
+
onChange: (value) => setLocalSearchTerm(value != null ? value : ""),
|
|
6610
6610
|
disableVariables: !allowBindingSearchTerm,
|
|
6611
6611
|
inputWhenNoVariables: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6612
6612
|
import_design_system44.InputKeywordSearch,
|
|
6613
6613
|
{
|
|
6614
6614
|
placeholder: "Search...",
|
|
6615
|
-
onSearchTextChanged: (e) =>
|
|
6616
|
-
value:
|
|
6615
|
+
onSearchTextChanged: (e) => setLocalSearchTerm(e),
|
|
6616
|
+
value: localSearchTerm,
|
|
6617
6617
|
compact: true,
|
|
6618
6618
|
rounded: true,
|
|
6619
|
-
css: SearchInput
|
|
6619
|
+
css: SearchInput,
|
|
6620
|
+
onKeyPress: (e) => {
|
|
6621
|
+
if (e.key === "Enter") {
|
|
6622
|
+
e.preventDefault();
|
|
6623
|
+
e.stopPropagation();
|
|
6624
|
+
}
|
|
6625
|
+
}
|
|
6620
6626
|
}
|
|
6621
6627
|
)
|
|
6622
6628
|
}
|
|
@@ -6626,7 +6632,7 @@ var FilterControls = ({
|
|
|
6626
6632
|
{
|
|
6627
6633
|
css: ClearSearchButtonStyles,
|
|
6628
6634
|
onClick: () => {
|
|
6629
|
-
|
|
6635
|
+
setLocalSearchTerm("");
|
|
6630
6636
|
if (editorRef.current) {
|
|
6631
6637
|
if (editorRef.current.getRootElement() !== document.activeElement) {
|
|
6632
6638
|
editorRef.current.dispatchCommand(import_lexical11.CLEAR_EDITOR_COMMAND, void 0);
|
package/dist/index.mjs
CHANGED
|
@@ -6504,17 +6504,17 @@ var FilterControls = ({
|
|
|
6504
6504
|
const editorRef = useRef9(null);
|
|
6505
6505
|
const variableRefernceCountInSearchTerm = hasReferencedVariables2(searchTerm);
|
|
6506
6506
|
const [idToResetInputVariables, setIdToResetInputVariables] = useState20("data-resource-search-term-input");
|
|
6507
|
-
const [
|
|
6507
|
+
const [localSearchTerm, setLocalSearchTerm] = useState20(searchTerm);
|
|
6508
6508
|
useDebounce7(
|
|
6509
6509
|
() => {
|
|
6510
|
-
setSearchTerm(
|
|
6510
|
+
setSearchTerm(localSearchTerm);
|
|
6511
6511
|
},
|
|
6512
6512
|
300,
|
|
6513
|
-
[
|
|
6513
|
+
[localSearchTerm]
|
|
6514
6514
|
);
|
|
6515
6515
|
useEffect18(() => {
|
|
6516
6516
|
if (searchTerm === "") {
|
|
6517
|
-
|
|
6517
|
+
setLocalSearchTerm("");
|
|
6518
6518
|
setIdToResetInputVariables(`data-resource-search-term-input-${v42()}`);
|
|
6519
6519
|
}
|
|
6520
6520
|
}, [searchTerm]);
|
|
@@ -6540,18 +6540,24 @@ var FilterControls = ({
|
|
|
6540
6540
|
id: idToResetInputVariables,
|
|
6541
6541
|
showMenuPosition: "inline-right",
|
|
6542
6542
|
editorRef,
|
|
6543
|
-
value:
|
|
6544
|
-
onChange: (value) =>
|
|
6543
|
+
value: localSearchTerm,
|
|
6544
|
+
onChange: (value) => setLocalSearchTerm(value != null ? value : ""),
|
|
6545
6545
|
disableVariables: !allowBindingSearchTerm,
|
|
6546
6546
|
inputWhenNoVariables: /* @__PURE__ */ jsx74(
|
|
6547
6547
|
InputKeywordSearch,
|
|
6548
6548
|
{
|
|
6549
6549
|
placeholder: "Search...",
|
|
6550
|
-
onSearchTextChanged: (e) =>
|
|
6551
|
-
value:
|
|
6550
|
+
onSearchTextChanged: (e) => setLocalSearchTerm(e),
|
|
6551
|
+
value: localSearchTerm,
|
|
6552
6552
|
compact: true,
|
|
6553
6553
|
rounded: true,
|
|
6554
|
-
css: SearchInput
|
|
6554
|
+
css: SearchInput,
|
|
6555
|
+
onKeyPress: (e) => {
|
|
6556
|
+
if (e.key === "Enter") {
|
|
6557
|
+
e.preventDefault();
|
|
6558
|
+
e.stopPropagation();
|
|
6559
|
+
}
|
|
6560
|
+
}
|
|
6555
6561
|
}
|
|
6556
6562
|
)
|
|
6557
6563
|
}
|
|
@@ -6561,7 +6567,7 @@ var FilterControls = ({
|
|
|
6561
6567
|
{
|
|
6562
6568
|
css: ClearSearchButtonStyles,
|
|
6563
6569
|
onClick: () => {
|
|
6564
|
-
|
|
6570
|
+
setLocalSearchTerm("");
|
|
6565
6571
|
if (editorRef.current) {
|
|
6566
6572
|
if (editorRef.current.getRootElement() !== document.activeElement) {
|
|
6567
6573
|
editorRef.current.dispatchCommand(CLEAR_EDITOR_COMMAND2, void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.23.1-alpha.5+cfbfa35e60",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"@lexical/selection": "0.25.0",
|
|
51
51
|
"@lexical/utils": "0.25.0",
|
|
52
52
|
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.5.0/react-icons-all-files-5.5.0.tgz",
|
|
53
|
-
"@uniformdev/canvas": "20.
|
|
54
|
-
"@uniformdev/design-system": "20.
|
|
55
|
-
"@uniformdev/mesh-sdk": "20.
|
|
56
|
-
"@uniformdev/richtext": "20.
|
|
53
|
+
"@uniformdev/canvas": "20.23.1-alpha.5+cfbfa35e60",
|
|
54
|
+
"@uniformdev/design-system": "20.23.1-alpha.5+cfbfa35e60",
|
|
55
|
+
"@uniformdev/mesh-sdk": "20.23.1-alpha.5+cfbfa35e60",
|
|
56
|
+
"@uniformdev/richtext": "20.23.1-alpha.5+cfbfa35e60",
|
|
57
57
|
"dequal": "^2.0.3",
|
|
58
58
|
"lexical": "0.25.0",
|
|
59
59
|
"mitt": "3.0.1",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "cfbfa35e607fd356fcf06f46fedabe323ab3b7cf"
|
|
90
90
|
}
|