@uniformdev/mesh-sdk-react 18.25.1-alpha.16 → 18.27.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.esm.js +17 -12
- package/dist/index.js +17 -12
- package/dist/index.mjs +17 -12
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -955,12 +955,12 @@ import { Callout as Callout2 } from "@uniformdev/design-system";
|
|
|
955
955
|
import React6, { useContext as useContext2, useMemo as useMemo2, useRef as useRef5 } from "react";
|
|
956
956
|
import { useAsync, useAsyncFn as useAsyncFn2 } from "react-use";
|
|
957
957
|
|
|
958
|
-
// src/components/
|
|
958
|
+
// src/components/EntrySearch/DefaultSearchRow.tsx
|
|
959
959
|
import { css as css7 } from "@emotion/react";
|
|
960
960
|
import { useOutsideClick } from "@uniformdev/design-system";
|
|
961
961
|
import { useRef, useState } from "react";
|
|
962
962
|
|
|
963
|
-
// src/components/
|
|
963
|
+
// src/components/EntrySearch/styles/DefaultSearchRow.styles.ts
|
|
964
964
|
import { css as css6 } from "@emotion/react";
|
|
965
965
|
var searchRowContainer = css6`
|
|
966
966
|
cursor: pointer;
|
|
@@ -1001,7 +1001,7 @@ var searchRowBtn = css6`
|
|
|
1001
1001
|
inset: 0 var(--spacing-sm) 0 auto;
|
|
1002
1002
|
`;
|
|
1003
1003
|
|
|
1004
|
-
// src/components/
|
|
1004
|
+
// src/components/EntrySearch/DefaultSearchRow.tsx
|
|
1005
1005
|
import { jsx as jsx19, jsxs as jsxs8 } from "@emotion/react/jsx-runtime";
|
|
1006
1006
|
var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
|
|
1007
1007
|
const popoverRef = useRef(null);
|
|
@@ -1075,7 +1075,7 @@ var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
|
|
|
1075
1075
|
);
|
|
1076
1076
|
};
|
|
1077
1077
|
|
|
1078
|
-
// src/components/
|
|
1078
|
+
// src/components/EntrySearch/DefaultSelectedItem.tsx
|
|
1079
1079
|
import { css as css9 } from "@emotion/react";
|
|
1080
1080
|
import { Icon as Icon2, useOutsideClick as useOutsideClick2 } from "@uniformdev/design-system";
|
|
1081
1081
|
import { useEffect, useRef as useRef2, useState as useState2 } from "react";
|
|
@@ -1093,7 +1093,7 @@ function openWindowWithCloseCallback(href, callback) {
|
|
|
1093
1093
|
}, 500);
|
|
1094
1094
|
}
|
|
1095
1095
|
|
|
1096
|
-
// src/components/
|
|
1096
|
+
// src/components/EntrySearch/styles/DefaultSelectedItem.styles.ts
|
|
1097
1097
|
import { css as css8 } from "@emotion/react";
|
|
1098
1098
|
import { mq as mq2 } from "@uniformdev/design-system";
|
|
1099
1099
|
var selectedItemContainer = css8`
|
|
@@ -1177,7 +1177,7 @@ var selectItemLinkBtn = css8`
|
|
|
1177
1177
|
}
|
|
1178
1178
|
`;
|
|
1179
1179
|
|
|
1180
|
-
// src/components/
|
|
1180
|
+
// src/components/EntrySearch/DefaultSelectedItem.tsx
|
|
1181
1181
|
import { jsx as jsx20, jsxs as jsxs9 } from "@emotion/react/jsx-runtime";
|
|
1182
1182
|
var DefaultSelectedItem = ({
|
|
1183
1183
|
selectedItem,
|
|
@@ -1360,7 +1360,7 @@ var DefaultSelectedItem = ({
|
|
|
1360
1360
|
] }) }, selectedItem.id);
|
|
1361
1361
|
};
|
|
1362
1362
|
|
|
1363
|
-
// src/components/
|
|
1363
|
+
// src/components/EntrySearch/EntrySearch.tsx
|
|
1364
1364
|
import { css as css11 } from "@emotion/react";
|
|
1365
1365
|
import {
|
|
1366
1366
|
Button,
|
|
@@ -1411,7 +1411,7 @@ function useLoadingDelay(loading, { delay = 500, minDuration = 200 } = {
|
|
|
1411
1411
|
return state === "DISPLAY" || state === "EXPIRE";
|
|
1412
1412
|
}
|
|
1413
1413
|
|
|
1414
|
-
// src/components/
|
|
1414
|
+
// src/components/EntrySearch/styles/EntrySearch.styles.ts
|
|
1415
1415
|
import { css as css10 } from "@emotion/react";
|
|
1416
1416
|
var entrySearchWrapper = css10`
|
|
1417
1417
|
background: var(--white);
|
|
@@ -1522,7 +1522,7 @@ var badgeIcon = css10`
|
|
|
1522
1522
|
height: calc(var(--spacing-lg) + var(--spacing-xs));
|
|
1523
1523
|
`;
|
|
1524
1524
|
|
|
1525
|
-
// src/components/
|
|
1525
|
+
// src/components/EntrySearch/EntrySearch.tsx
|
|
1526
1526
|
import { Fragment as Fragment3, jsx as jsx21, jsxs as jsxs10 } from "@emotion/react/jsx-runtime";
|
|
1527
1527
|
var DefaultNoResults = ({ searchText, selectedContentType }) => {
|
|
1528
1528
|
let message = "No content found";
|
|
@@ -2691,13 +2691,18 @@ var UniformMeshLocationContextProvider = ({
|
|
|
2691
2691
|
}) => {
|
|
2692
2692
|
const sdk = useUniformMeshSdk();
|
|
2693
2693
|
const [location, setLocation] = useState6(sdk.getCurrentLocation());
|
|
2694
|
-
const valueChangeListener = (event) => {
|
|
2695
|
-
setLocation((old) => ({ ...old, value: event.newValue }));
|
|
2696
|
-
};
|
|
2697
2694
|
useMemo3(() => {
|
|
2695
|
+
const valueChangeListener = (event) => {
|
|
2696
|
+
setLocation((old) => ({ ...old, value: event.newValue }));
|
|
2697
|
+
};
|
|
2698
|
+
const metaChangeListener = (event) => {
|
|
2699
|
+
setLocation((old) => ({ ...old, metadata: event.newValue }));
|
|
2700
|
+
};
|
|
2698
2701
|
sdk.events.on("onValueChanged", valueChangeListener);
|
|
2702
|
+
sdk.events.on("onMetadataChanged", metaChangeListener);
|
|
2699
2703
|
return () => {
|
|
2700
2704
|
sdk.events.off("onValueChanged", valueChangeListener);
|
|
2705
|
+
sdk.events.off("onMetadataChanged", metaChangeListener);
|
|
2701
2706
|
};
|
|
2702
2707
|
}, [sdk]);
|
|
2703
2708
|
return /* @__PURE__ */ jsx27(UniformMeshLocationContext.Provider, { value: { location }, children });
|
package/dist/index.js
CHANGED
|
@@ -1134,12 +1134,12 @@ var import_design_system10 = require("@uniformdev/design-system");
|
|
|
1134
1134
|
var import_react21 = __toESM(require("react"));
|
|
1135
1135
|
var import_react_use3 = require("react-use");
|
|
1136
1136
|
|
|
1137
|
-
// src/components/
|
|
1137
|
+
// src/components/EntrySearch/DefaultSearchRow.tsx
|
|
1138
1138
|
var import_react9 = require("@emotion/react");
|
|
1139
1139
|
var import_design_system4 = require("@uniformdev/design-system");
|
|
1140
1140
|
var import_react10 = require("react");
|
|
1141
1141
|
|
|
1142
|
-
// src/components/
|
|
1142
|
+
// src/components/EntrySearch/styles/DefaultSearchRow.styles.ts
|
|
1143
1143
|
var import_react8 = require("@emotion/react");
|
|
1144
1144
|
var searchRowContainer = import_react8.css`
|
|
1145
1145
|
cursor: pointer;
|
|
@@ -1180,7 +1180,7 @@ var searchRowBtn = import_react8.css`
|
|
|
1180
1180
|
inset: 0 var(--spacing-sm) 0 auto;
|
|
1181
1181
|
`;
|
|
1182
1182
|
|
|
1183
|
-
// src/components/
|
|
1183
|
+
// src/components/EntrySearch/DefaultSearchRow.tsx
|
|
1184
1184
|
var import_jsx_runtime19 = require("@emotion/react/jsx-runtime");
|
|
1185
1185
|
var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
|
|
1186
1186
|
const popoverRef = (0, import_react10.useRef)(null);
|
|
@@ -1254,7 +1254,7 @@ var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
|
|
|
1254
1254
|
);
|
|
1255
1255
|
};
|
|
1256
1256
|
|
|
1257
|
-
// src/components/
|
|
1257
|
+
// src/components/EntrySearch/DefaultSelectedItem.tsx
|
|
1258
1258
|
var import_react12 = require("@emotion/react");
|
|
1259
1259
|
var import_design_system6 = require("@uniformdev/design-system");
|
|
1260
1260
|
var import_react13 = require("react");
|
|
@@ -1272,7 +1272,7 @@ function openWindowWithCloseCallback(href, callback) {
|
|
|
1272
1272
|
}, 500);
|
|
1273
1273
|
}
|
|
1274
1274
|
|
|
1275
|
-
// src/components/
|
|
1275
|
+
// src/components/EntrySearch/styles/DefaultSelectedItem.styles.ts
|
|
1276
1276
|
var import_react11 = require("@emotion/react");
|
|
1277
1277
|
var import_design_system5 = require("@uniformdev/design-system");
|
|
1278
1278
|
var selectedItemContainer = import_react11.css`
|
|
@@ -1356,7 +1356,7 @@ var selectItemLinkBtn = import_react11.css`
|
|
|
1356
1356
|
}
|
|
1357
1357
|
`;
|
|
1358
1358
|
|
|
1359
|
-
// src/components/
|
|
1359
|
+
// src/components/EntrySearch/DefaultSelectedItem.tsx
|
|
1360
1360
|
var import_jsx_runtime20 = require("@emotion/react/jsx-runtime");
|
|
1361
1361
|
var DefaultSelectedItem = ({
|
|
1362
1362
|
selectedItem,
|
|
@@ -1539,7 +1539,7 @@ var DefaultSelectedItem = ({
|
|
|
1539
1539
|
] }) }, selectedItem.id);
|
|
1540
1540
|
};
|
|
1541
1541
|
|
|
1542
|
-
// src/components/
|
|
1542
|
+
// src/components/EntrySearch/EntrySearch.tsx
|
|
1543
1543
|
var import_react16 = require("@emotion/react");
|
|
1544
1544
|
var import_design_system7 = require("@uniformdev/design-system");
|
|
1545
1545
|
var React5 = __toESM(require("react"));
|
|
@@ -1580,7 +1580,7 @@ function useLoadingDelay(loading, { delay = 500, minDuration = 200 } = {
|
|
|
1580
1580
|
return state === "DISPLAY" || state === "EXPIRE";
|
|
1581
1581
|
}
|
|
1582
1582
|
|
|
1583
|
-
// src/components/
|
|
1583
|
+
// src/components/EntrySearch/styles/EntrySearch.styles.ts
|
|
1584
1584
|
var import_react15 = require("@emotion/react");
|
|
1585
1585
|
var entrySearchWrapper = import_react15.css`
|
|
1586
1586
|
background: var(--white);
|
|
@@ -1691,7 +1691,7 @@ var badgeIcon = import_react15.css`
|
|
|
1691
1691
|
height: calc(var(--spacing-lg) + var(--spacing-xs));
|
|
1692
1692
|
`;
|
|
1693
1693
|
|
|
1694
|
-
// src/components/
|
|
1694
|
+
// src/components/EntrySearch/EntrySearch.tsx
|
|
1695
1695
|
var import_jsx_runtime21 = require("@emotion/react/jsx-runtime");
|
|
1696
1696
|
var DefaultNoResults = ({ searchText, selectedContentType }) => {
|
|
1697
1697
|
let message = "No content found";
|
|
@@ -2860,13 +2860,18 @@ var UniformMeshLocationContextProvider = ({
|
|
|
2860
2860
|
}) => {
|
|
2861
2861
|
const sdk = useUniformMeshSdk();
|
|
2862
2862
|
const [location, setLocation] = (0, import_react26.useState)(sdk.getCurrentLocation());
|
|
2863
|
-
const valueChangeListener = (event) => {
|
|
2864
|
-
setLocation((old) => ({ ...old, value: event.newValue }));
|
|
2865
|
-
};
|
|
2866
2863
|
(0, import_react26.useMemo)(() => {
|
|
2864
|
+
const valueChangeListener = (event) => {
|
|
2865
|
+
setLocation((old) => ({ ...old, value: event.newValue }));
|
|
2866
|
+
};
|
|
2867
|
+
const metaChangeListener = (event) => {
|
|
2868
|
+
setLocation((old) => ({ ...old, metadata: event.newValue }));
|
|
2869
|
+
};
|
|
2867
2870
|
sdk.events.on("onValueChanged", valueChangeListener);
|
|
2871
|
+
sdk.events.on("onMetadataChanged", metaChangeListener);
|
|
2868
2872
|
return () => {
|
|
2869
2873
|
sdk.events.off("onValueChanged", valueChangeListener);
|
|
2874
|
+
sdk.events.off("onMetadataChanged", metaChangeListener);
|
|
2870
2875
|
};
|
|
2871
2876
|
}, [sdk]);
|
|
2872
2877
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(UniformMeshLocationContext.Provider, { value: { location }, children });
|
package/dist/index.mjs
CHANGED
|
@@ -955,12 +955,12 @@ import { Callout as Callout2 } from "@uniformdev/design-system";
|
|
|
955
955
|
import React6, { useContext as useContext2, useMemo as useMemo2, useRef as useRef5 } from "react";
|
|
956
956
|
import { useAsync, useAsyncFn as useAsyncFn2 } from "react-use";
|
|
957
957
|
|
|
958
|
-
// src/components/
|
|
958
|
+
// src/components/EntrySearch/DefaultSearchRow.tsx
|
|
959
959
|
import { css as css7 } from "@emotion/react";
|
|
960
960
|
import { useOutsideClick } from "@uniformdev/design-system";
|
|
961
961
|
import { useRef, useState } from "react";
|
|
962
962
|
|
|
963
|
-
// src/components/
|
|
963
|
+
// src/components/EntrySearch/styles/DefaultSearchRow.styles.ts
|
|
964
964
|
import { css as css6 } from "@emotion/react";
|
|
965
965
|
var searchRowContainer = css6`
|
|
966
966
|
cursor: pointer;
|
|
@@ -1001,7 +1001,7 @@ var searchRowBtn = css6`
|
|
|
1001
1001
|
inset: 0 var(--spacing-sm) 0 auto;
|
|
1002
1002
|
`;
|
|
1003
1003
|
|
|
1004
|
-
// src/components/
|
|
1004
|
+
// src/components/EntrySearch/DefaultSearchRow.tsx
|
|
1005
1005
|
import { jsx as jsx19, jsxs as jsxs8 } from "@emotion/react/jsx-runtime";
|
|
1006
1006
|
var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
|
|
1007
1007
|
const popoverRef = useRef(null);
|
|
@@ -1075,7 +1075,7 @@ var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
|
|
|
1075
1075
|
);
|
|
1076
1076
|
};
|
|
1077
1077
|
|
|
1078
|
-
// src/components/
|
|
1078
|
+
// src/components/EntrySearch/DefaultSelectedItem.tsx
|
|
1079
1079
|
import { css as css9 } from "@emotion/react";
|
|
1080
1080
|
import { Icon as Icon2, useOutsideClick as useOutsideClick2 } from "@uniformdev/design-system";
|
|
1081
1081
|
import { useEffect, useRef as useRef2, useState as useState2 } from "react";
|
|
@@ -1093,7 +1093,7 @@ function openWindowWithCloseCallback(href, callback) {
|
|
|
1093
1093
|
}, 500);
|
|
1094
1094
|
}
|
|
1095
1095
|
|
|
1096
|
-
// src/components/
|
|
1096
|
+
// src/components/EntrySearch/styles/DefaultSelectedItem.styles.ts
|
|
1097
1097
|
import { css as css8 } from "@emotion/react";
|
|
1098
1098
|
import { mq as mq2 } from "@uniformdev/design-system";
|
|
1099
1099
|
var selectedItemContainer = css8`
|
|
@@ -1177,7 +1177,7 @@ var selectItemLinkBtn = css8`
|
|
|
1177
1177
|
}
|
|
1178
1178
|
`;
|
|
1179
1179
|
|
|
1180
|
-
// src/components/
|
|
1180
|
+
// src/components/EntrySearch/DefaultSelectedItem.tsx
|
|
1181
1181
|
import { jsx as jsx20, jsxs as jsxs9 } from "@emotion/react/jsx-runtime";
|
|
1182
1182
|
var DefaultSelectedItem = ({
|
|
1183
1183
|
selectedItem,
|
|
@@ -1360,7 +1360,7 @@ var DefaultSelectedItem = ({
|
|
|
1360
1360
|
] }) }, selectedItem.id);
|
|
1361
1361
|
};
|
|
1362
1362
|
|
|
1363
|
-
// src/components/
|
|
1363
|
+
// src/components/EntrySearch/EntrySearch.tsx
|
|
1364
1364
|
import { css as css11 } from "@emotion/react";
|
|
1365
1365
|
import {
|
|
1366
1366
|
Button,
|
|
@@ -1411,7 +1411,7 @@ function useLoadingDelay(loading, { delay = 500, minDuration = 200 } = {
|
|
|
1411
1411
|
return state === "DISPLAY" || state === "EXPIRE";
|
|
1412
1412
|
}
|
|
1413
1413
|
|
|
1414
|
-
// src/components/
|
|
1414
|
+
// src/components/EntrySearch/styles/EntrySearch.styles.ts
|
|
1415
1415
|
import { css as css10 } from "@emotion/react";
|
|
1416
1416
|
var entrySearchWrapper = css10`
|
|
1417
1417
|
background: var(--white);
|
|
@@ -1522,7 +1522,7 @@ var badgeIcon = css10`
|
|
|
1522
1522
|
height: calc(var(--spacing-lg) + var(--spacing-xs));
|
|
1523
1523
|
`;
|
|
1524
1524
|
|
|
1525
|
-
// src/components/
|
|
1525
|
+
// src/components/EntrySearch/EntrySearch.tsx
|
|
1526
1526
|
import { Fragment as Fragment3, jsx as jsx21, jsxs as jsxs10 } from "@emotion/react/jsx-runtime";
|
|
1527
1527
|
var DefaultNoResults = ({ searchText, selectedContentType }) => {
|
|
1528
1528
|
let message = "No content found";
|
|
@@ -2691,13 +2691,18 @@ var UniformMeshLocationContextProvider = ({
|
|
|
2691
2691
|
}) => {
|
|
2692
2692
|
const sdk = useUniformMeshSdk();
|
|
2693
2693
|
const [location, setLocation] = useState6(sdk.getCurrentLocation());
|
|
2694
|
-
const valueChangeListener = (event) => {
|
|
2695
|
-
setLocation((old) => ({ ...old, value: event.newValue }));
|
|
2696
|
-
};
|
|
2697
2694
|
useMemo3(() => {
|
|
2695
|
+
const valueChangeListener = (event) => {
|
|
2696
|
+
setLocation((old) => ({ ...old, value: event.newValue }));
|
|
2697
|
+
};
|
|
2698
|
+
const metaChangeListener = (event) => {
|
|
2699
|
+
setLocation((old) => ({ ...old, metadata: event.newValue }));
|
|
2700
|
+
};
|
|
2698
2701
|
sdk.events.on("onValueChanged", valueChangeListener);
|
|
2702
|
+
sdk.events.on("onMetadataChanged", metaChangeListener);
|
|
2699
2703
|
return () => {
|
|
2700
2704
|
sdk.events.off("onValueChanged", valueChangeListener);
|
|
2705
|
+
sdk.events.off("onMetadataChanged", metaChangeListener);
|
|
2701
2706
|
};
|
|
2702
2707
|
}, [sdk]);
|
|
2703
2708
|
return /* @__PURE__ */ jsx27(UniformMeshLocationContext.Provider, { value: { location }, children });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.27.0",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"document": "api-extractor run --local"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@uniformdev/design-system": "18.
|
|
47
|
-
"@uniformdev/mesh-sdk": "18.
|
|
46
|
+
"@uniformdev/design-system": "18.27.0",
|
|
47
|
+
"@uniformdev/mesh-sdk": "18.27.0",
|
|
48
48
|
"formik": "^2.2.9",
|
|
49
49
|
"react-beautiful-dnd": "13.1.1",
|
|
50
50
|
"react-icons": "4.8.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@emotion/react": "11.10.5",
|
|
63
63
|
"@svgr/cli": "6.5.1",
|
|
64
64
|
"@types/react": "18.0.28",
|
|
65
|
-
"@types/react-beautiful-dnd": "13.1.
|
|
65
|
+
"@types/react-beautiful-dnd": "13.1.4",
|
|
66
66
|
"@types/uuid": "9.0.1",
|
|
67
67
|
"react": "18.2.0",
|
|
68
68
|
"react-dom": "18.2.0"
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "2f40af577d2f8ce537e857f8fbc08b4030e73cd1"
|
|
77
77
|
}
|