@uniformdev/mesh-sdk-react 18.18.1-alpha.12 → 18.19.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 +61 -48
- package/dist/index.js +65 -48
- package/dist/index.mjs +61 -48
- package/package.json +7 -6
package/dist/index.esm.js
CHANGED
|
@@ -1606,6 +1606,7 @@ var EntrySearch = ({
|
|
|
1606
1606
|
setSelectedListItems(selectedItems);
|
|
1607
1607
|
}
|
|
1608
1608
|
},
|
|
1609
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1609
1610
|
[selectedItemsHash]
|
|
1610
1611
|
);
|
|
1611
1612
|
const resetForm = () => {
|
|
@@ -1857,58 +1858,61 @@ var EntrySearch = ({
|
|
|
1857
1858
|
}
|
|
1858
1859
|
)
|
|
1859
1860
|
] }) : null,
|
|
1860
|
-
!listOpen ? multiSelect && selectedListItems.length > 1 ?
|
|
1861
|
-
|
|
1862
|
-
{
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1861
|
+
!listOpen ? multiSelect && selectedListItems.length > 1 ? (
|
|
1862
|
+
//enable dnd only if selected more then 1 item
|
|
1863
|
+
/* @__PURE__ */ jsx21(DragDropContext, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ jsx21(Droppable, { droppableId: multiSelectId || "canvas-multi-select", children: (provided) => /* @__PURE__ */ jsxs10(
|
|
1864
|
+
"div",
|
|
1865
|
+
{
|
|
1866
|
+
...provided.droppableProps,
|
|
1867
|
+
ref: provided.innerRef,
|
|
1868
|
+
css: css11`
|
|
1866
1869
|
margin-block: var(--spacing-sm) 0;
|
|
1867
1870
|
`,
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1871
|
+
children: [
|
|
1872
|
+
selectedListItems == null ? void 0 : selectedListItems.map((selectedItem, index) => {
|
|
1873
|
+
if (selectedItem == null ? void 0 : selectedItem.id) {
|
|
1874
|
+
return /* @__PURE__ */ jsx21(Draggable, { draggableId: selectedItem.id, index, children: (provided2, snapshot) => {
|
|
1875
|
+
return /* @__PURE__ */ jsxs10(
|
|
1876
|
+
"div",
|
|
1877
|
+
{
|
|
1878
|
+
css: draggableContainer,
|
|
1879
|
+
ref: provided2.innerRef,
|
|
1880
|
+
"data-dragging": snapshot.isDragging,
|
|
1881
|
+
...provided2.draggableProps,
|
|
1882
|
+
...provided2.dragHandleProps,
|
|
1883
|
+
children: [
|
|
1884
|
+
/* @__PURE__ */ jsxs10("span", { css: draggableIconWrapper, children: [
|
|
1885
|
+
/* @__PURE__ */ jsx21(
|
|
1886
|
+
MoreVerticalAlt_default,
|
|
1887
|
+
{
|
|
1888
|
+
css: [draggableIcon, draggableIconOffset],
|
|
1889
|
+
width: 24,
|
|
1890
|
+
height: 24
|
|
1891
|
+
}
|
|
1892
|
+
),
|
|
1893
|
+
/* @__PURE__ */ jsx21(MoreVerticalAlt_default, { css: draggableIcon, width: 24, height: 24 })
|
|
1894
|
+
] }),
|
|
1882
1895
|
/* @__PURE__ */ jsx21(
|
|
1883
|
-
|
|
1896
|
+
ResolvedSelectedItemComponent,
|
|
1884
1897
|
{
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
}
|
|
1904
|
-
);
|
|
1905
|
-
} }, selectedItem.id);
|
|
1906
|
-
}
|
|
1907
|
-
}),
|
|
1908
|
-
provided.placeholder
|
|
1909
|
-
]
|
|
1910
|
-
}
|
|
1911
|
-
) }) }) : selectedListItems == null ? void 0 : selectedListItems.map((selectedItem) => /* @__PURE__ */ jsx21(
|
|
1898
|
+
logoIcon,
|
|
1899
|
+
selectedItem,
|
|
1900
|
+
onDeselect: (item) => handleDeselect(item),
|
|
1901
|
+
onEditClosed: onEditClosed ? (item) => onEditClosed(item) : void 0
|
|
1902
|
+
},
|
|
1903
|
+
`selected-item-${selectedItem.id}`
|
|
1904
|
+
)
|
|
1905
|
+
]
|
|
1906
|
+
}
|
|
1907
|
+
);
|
|
1908
|
+
} }, selectedItem.id);
|
|
1909
|
+
}
|
|
1910
|
+
}),
|
|
1911
|
+
provided.placeholder
|
|
1912
|
+
]
|
|
1913
|
+
}
|
|
1914
|
+
) }) })
|
|
1915
|
+
) : selectedListItems == null ? void 0 : selectedListItems.map((selectedItem) => /* @__PURE__ */ jsx21(
|
|
1912
1916
|
ResolvedSelectedItemComponent,
|
|
1913
1917
|
{
|
|
1914
1918
|
logoIcon,
|
|
@@ -2275,6 +2279,9 @@ function ProductSearch({
|
|
|
2275
2279
|
}));
|
|
2276
2280
|
return result;
|
|
2277
2281
|
},
|
|
2282
|
+
// We use `categoryIds` as a dependency instead of `categories` array so
|
|
2283
|
+
// that equality comparison is more accurate with what we expect.
|
|
2284
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2278
2285
|
[categoryIds]
|
|
2279
2286
|
);
|
|
2280
2287
|
const combinedSearchResults = useRef5();
|
|
@@ -3454,6 +3461,7 @@ import { jsx as jsx31 } from "@emotion/react/jsx-runtime";
|
|
|
3454
3461
|
function InputVariables({
|
|
3455
3462
|
"aria-label": ariaLabel,
|
|
3456
3463
|
value,
|
|
3464
|
+
// disableVariables,
|
|
3457
3465
|
onChange,
|
|
3458
3466
|
onPaste,
|
|
3459
3467
|
onVariableClick,
|
|
@@ -4408,9 +4416,14 @@ var useInitializeUniformMeshSdk = ({ autoResizingDisabled } = {}) => {
|
|
|
4408
4416
|
setSdk(window.UniformMeshSDK);
|
|
4409
4417
|
}
|
|
4410
4418
|
},
|
|
4419
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4411
4420
|
[autoResizingDisabled]
|
|
4412
4421
|
);
|
|
4413
4422
|
return {
|
|
4423
|
+
// note: we don't use initializationInProgress.current here to tell the consumer whether or not we're
|
|
4424
|
+
// initializing, because initializationInProgress.current initially starts out as `false` and is
|
|
4425
|
+
// only used as a workaround for React StrictMode.
|
|
4426
|
+
// We don't consider the sdk initialized until the `sdk` value is actually defined.
|
|
4414
4427
|
initializing: !sdk && !error,
|
|
4415
4428
|
error,
|
|
4416
4429
|
sdk
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
21
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
26
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
27
|
mod
|
|
24
28
|
));
|
|
@@ -1755,6 +1759,7 @@ var EntrySearch = ({
|
|
|
1755
1759
|
setSelectedListItems(selectedItems);
|
|
1756
1760
|
}
|
|
1757
1761
|
},
|
|
1762
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1758
1763
|
[selectedItemsHash]
|
|
1759
1764
|
);
|
|
1760
1765
|
const resetForm = () => {
|
|
@@ -2006,58 +2011,61 @@ var EntrySearch = ({
|
|
|
2006
2011
|
}
|
|
2007
2012
|
)
|
|
2008
2013
|
] }) : null,
|
|
2009
|
-
!listOpen ? multiSelect && selectedListItems.length > 1 ?
|
|
2010
|
-
|
|
2011
|
-
{
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2014
|
+
!listOpen ? multiSelect && selectedListItems.length > 1 ? (
|
|
2015
|
+
//enable dnd only if selected more then 1 item
|
|
2016
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_beautiful_dnd.DragDropContext, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_beautiful_dnd.Droppable, { droppableId: multiSelectId || "canvas-multi-select", children: (provided) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2017
|
+
"div",
|
|
2018
|
+
{
|
|
2019
|
+
...provided.droppableProps,
|
|
2020
|
+
ref: provided.innerRef,
|
|
2021
|
+
css: import_react16.css`
|
|
2015
2022
|
margin-block: var(--spacing-sm) 0;
|
|
2016
2023
|
`,
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2024
|
+
children: [
|
|
2025
|
+
selectedListItems == null ? void 0 : selectedListItems.map((selectedItem, index) => {
|
|
2026
|
+
if (selectedItem == null ? void 0 : selectedItem.id) {
|
|
2027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_beautiful_dnd.Draggable, { draggableId: selectedItem.id, index, children: (provided2, snapshot) => {
|
|
2028
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2029
|
+
"div",
|
|
2030
|
+
{
|
|
2031
|
+
css: draggableContainer,
|
|
2032
|
+
ref: provided2.innerRef,
|
|
2033
|
+
"data-dragging": snapshot.isDragging,
|
|
2034
|
+
...provided2.draggableProps,
|
|
2035
|
+
...provided2.dragHandleProps,
|
|
2036
|
+
children: [
|
|
2037
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { css: draggableIconWrapper, children: [
|
|
2038
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2039
|
+
MoreVerticalAlt_default,
|
|
2040
|
+
{
|
|
2041
|
+
css: [draggableIcon, draggableIconOffset],
|
|
2042
|
+
width: 24,
|
|
2043
|
+
height: 24
|
|
2044
|
+
}
|
|
2045
|
+
),
|
|
2046
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(MoreVerticalAlt_default, { css: draggableIcon, width: 24, height: 24 })
|
|
2047
|
+
] }),
|
|
2031
2048
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2032
|
-
|
|
2049
|
+
ResolvedSelectedItemComponent,
|
|
2033
2050
|
{
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
}
|
|
2053
|
-
);
|
|
2054
|
-
} }, selectedItem.id);
|
|
2055
|
-
}
|
|
2056
|
-
}),
|
|
2057
|
-
provided.placeholder
|
|
2058
|
-
]
|
|
2059
|
-
}
|
|
2060
|
-
) }) }) : selectedListItems == null ? void 0 : selectedListItems.map((selectedItem) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2051
|
+
logoIcon,
|
|
2052
|
+
selectedItem,
|
|
2053
|
+
onDeselect: (item) => handleDeselect(item),
|
|
2054
|
+
onEditClosed: onEditClosed ? (item) => onEditClosed(item) : void 0
|
|
2055
|
+
},
|
|
2056
|
+
`selected-item-${selectedItem.id}`
|
|
2057
|
+
)
|
|
2058
|
+
]
|
|
2059
|
+
}
|
|
2060
|
+
);
|
|
2061
|
+
} }, selectedItem.id);
|
|
2062
|
+
}
|
|
2063
|
+
}),
|
|
2064
|
+
provided.placeholder
|
|
2065
|
+
]
|
|
2066
|
+
}
|
|
2067
|
+
) }) })
|
|
2068
|
+
) : selectedListItems == null ? void 0 : selectedListItems.map((selectedItem) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2061
2069
|
ResolvedSelectedItemComponent,
|
|
2062
2070
|
{
|
|
2063
2071
|
logoIcon,
|
|
@@ -2424,6 +2432,9 @@ function ProductSearch({
|
|
|
2424
2432
|
}));
|
|
2425
2433
|
return result;
|
|
2426
2434
|
},
|
|
2435
|
+
// We use `categoryIds` as a dependency instead of `categories` array so
|
|
2436
|
+
// that equality comparison is more accurate with what we expect.
|
|
2437
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2427
2438
|
[categoryIds]
|
|
2428
2439
|
);
|
|
2429
2440
|
const combinedSearchResults = (0, import_react21.useRef)();
|
|
@@ -3603,6 +3614,7 @@ var import_jsx_runtime31 = require("@emotion/react/jsx-runtime");
|
|
|
3603
3614
|
function InputVariables({
|
|
3604
3615
|
"aria-label": ariaLabel,
|
|
3605
3616
|
value,
|
|
3617
|
+
// disableVariables,
|
|
3606
3618
|
onChange,
|
|
3607
3619
|
onPaste,
|
|
3608
3620
|
onVariableClick,
|
|
@@ -4529,9 +4541,14 @@ var useInitializeUniformMeshSdk = ({ autoResizingDisabled } = {}) => {
|
|
|
4529
4541
|
setSdk(window.UniformMeshSDK);
|
|
4530
4542
|
}
|
|
4531
4543
|
},
|
|
4544
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4532
4545
|
[autoResizingDisabled]
|
|
4533
4546
|
);
|
|
4534
4547
|
return {
|
|
4548
|
+
// note: we don't use initializationInProgress.current here to tell the consumer whether or not we're
|
|
4549
|
+
// initializing, because initializationInProgress.current initially starts out as `false` and is
|
|
4550
|
+
// only used as a workaround for React StrictMode.
|
|
4551
|
+
// We don't consider the sdk initialized until the `sdk` value is actually defined.
|
|
4535
4552
|
initializing: !sdk && !error,
|
|
4536
4553
|
error,
|
|
4537
4554
|
sdk
|
package/dist/index.mjs
CHANGED
|
@@ -1606,6 +1606,7 @@ var EntrySearch = ({
|
|
|
1606
1606
|
setSelectedListItems(selectedItems);
|
|
1607
1607
|
}
|
|
1608
1608
|
},
|
|
1609
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1609
1610
|
[selectedItemsHash]
|
|
1610
1611
|
);
|
|
1611
1612
|
const resetForm = () => {
|
|
@@ -1857,58 +1858,61 @@ var EntrySearch = ({
|
|
|
1857
1858
|
}
|
|
1858
1859
|
)
|
|
1859
1860
|
] }) : null,
|
|
1860
|
-
!listOpen ? multiSelect && selectedListItems.length > 1 ?
|
|
1861
|
-
|
|
1862
|
-
{
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1861
|
+
!listOpen ? multiSelect && selectedListItems.length > 1 ? (
|
|
1862
|
+
//enable dnd only if selected more then 1 item
|
|
1863
|
+
/* @__PURE__ */ jsx21(DragDropContext, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ jsx21(Droppable, { droppableId: multiSelectId || "canvas-multi-select", children: (provided) => /* @__PURE__ */ jsxs10(
|
|
1864
|
+
"div",
|
|
1865
|
+
{
|
|
1866
|
+
...provided.droppableProps,
|
|
1867
|
+
ref: provided.innerRef,
|
|
1868
|
+
css: css11`
|
|
1866
1869
|
margin-block: var(--spacing-sm) 0;
|
|
1867
1870
|
`,
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1871
|
+
children: [
|
|
1872
|
+
selectedListItems == null ? void 0 : selectedListItems.map((selectedItem, index) => {
|
|
1873
|
+
if (selectedItem == null ? void 0 : selectedItem.id) {
|
|
1874
|
+
return /* @__PURE__ */ jsx21(Draggable, { draggableId: selectedItem.id, index, children: (provided2, snapshot) => {
|
|
1875
|
+
return /* @__PURE__ */ jsxs10(
|
|
1876
|
+
"div",
|
|
1877
|
+
{
|
|
1878
|
+
css: draggableContainer,
|
|
1879
|
+
ref: provided2.innerRef,
|
|
1880
|
+
"data-dragging": snapshot.isDragging,
|
|
1881
|
+
...provided2.draggableProps,
|
|
1882
|
+
...provided2.dragHandleProps,
|
|
1883
|
+
children: [
|
|
1884
|
+
/* @__PURE__ */ jsxs10("span", { css: draggableIconWrapper, children: [
|
|
1885
|
+
/* @__PURE__ */ jsx21(
|
|
1886
|
+
MoreVerticalAlt_default,
|
|
1887
|
+
{
|
|
1888
|
+
css: [draggableIcon, draggableIconOffset],
|
|
1889
|
+
width: 24,
|
|
1890
|
+
height: 24
|
|
1891
|
+
}
|
|
1892
|
+
),
|
|
1893
|
+
/* @__PURE__ */ jsx21(MoreVerticalAlt_default, { css: draggableIcon, width: 24, height: 24 })
|
|
1894
|
+
] }),
|
|
1882
1895
|
/* @__PURE__ */ jsx21(
|
|
1883
|
-
|
|
1896
|
+
ResolvedSelectedItemComponent,
|
|
1884
1897
|
{
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
}
|
|
1904
|
-
);
|
|
1905
|
-
} }, selectedItem.id);
|
|
1906
|
-
}
|
|
1907
|
-
}),
|
|
1908
|
-
provided.placeholder
|
|
1909
|
-
]
|
|
1910
|
-
}
|
|
1911
|
-
) }) }) : selectedListItems == null ? void 0 : selectedListItems.map((selectedItem) => /* @__PURE__ */ jsx21(
|
|
1898
|
+
logoIcon,
|
|
1899
|
+
selectedItem,
|
|
1900
|
+
onDeselect: (item) => handleDeselect(item),
|
|
1901
|
+
onEditClosed: onEditClosed ? (item) => onEditClosed(item) : void 0
|
|
1902
|
+
},
|
|
1903
|
+
`selected-item-${selectedItem.id}`
|
|
1904
|
+
)
|
|
1905
|
+
]
|
|
1906
|
+
}
|
|
1907
|
+
);
|
|
1908
|
+
} }, selectedItem.id);
|
|
1909
|
+
}
|
|
1910
|
+
}),
|
|
1911
|
+
provided.placeholder
|
|
1912
|
+
]
|
|
1913
|
+
}
|
|
1914
|
+
) }) })
|
|
1915
|
+
) : selectedListItems == null ? void 0 : selectedListItems.map((selectedItem) => /* @__PURE__ */ jsx21(
|
|
1912
1916
|
ResolvedSelectedItemComponent,
|
|
1913
1917
|
{
|
|
1914
1918
|
logoIcon,
|
|
@@ -2275,6 +2279,9 @@ function ProductSearch({
|
|
|
2275
2279
|
}));
|
|
2276
2280
|
return result;
|
|
2277
2281
|
},
|
|
2282
|
+
// We use `categoryIds` as a dependency instead of `categories` array so
|
|
2283
|
+
// that equality comparison is more accurate with what we expect.
|
|
2284
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2278
2285
|
[categoryIds]
|
|
2279
2286
|
);
|
|
2280
2287
|
const combinedSearchResults = useRef5();
|
|
@@ -3454,6 +3461,7 @@ import { jsx as jsx31 } from "@emotion/react/jsx-runtime";
|
|
|
3454
3461
|
function InputVariables({
|
|
3455
3462
|
"aria-label": ariaLabel,
|
|
3456
3463
|
value,
|
|
3464
|
+
// disableVariables,
|
|
3457
3465
|
onChange,
|
|
3458
3466
|
onPaste,
|
|
3459
3467
|
onVariableClick,
|
|
@@ -4408,9 +4416,14 @@ var useInitializeUniformMeshSdk = ({ autoResizingDisabled } = {}) => {
|
|
|
4408
4416
|
setSdk(window.UniformMeshSDK);
|
|
4409
4417
|
}
|
|
4410
4418
|
},
|
|
4419
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4411
4420
|
[autoResizingDisabled]
|
|
4412
4421
|
);
|
|
4413
4422
|
return {
|
|
4423
|
+
// note: we don't use initializationInProgress.current here to tell the consumer whether or not we're
|
|
4424
|
+
// initializing, because initializationInProgress.current initially starts out as `false` and is
|
|
4425
|
+
// only used as a workaround for React StrictMode.
|
|
4426
|
+
// We don't consider the sdk initialized until the `sdk` value is actually defined.
|
|
4414
4427
|
initializing: !sdk && !error,
|
|
4415
4428
|
error,
|
|
4416
4429
|
sdk
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.19.0",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,12 +39,13 @@
|
|
|
39
39
|
"clean": "rimraf dist",
|
|
40
40
|
"test": "jest --maxWorkers=1 --passWithNoTests",
|
|
41
41
|
"lint": "eslint \"src/**/*.{js,ts,tsx}\"",
|
|
42
|
-
"format": "prettier --write \"src/**/*.{js,ts,tsx}\""
|
|
42
|
+
"format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
|
|
43
|
+
"document": "api-extractor run --local"
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
45
46
|
"@monaco-editor/react": "4.4.6",
|
|
46
|
-
"@uniformdev/design-system": "18.
|
|
47
|
-
"@uniformdev/mesh-sdk": "18.
|
|
47
|
+
"@uniformdev/design-system": "18.19.0",
|
|
48
|
+
"@uniformdev/mesh-sdk": "18.19.0",
|
|
48
49
|
"formik": "^2.2.9",
|
|
49
50
|
"monaco-editor": "0.34.1",
|
|
50
51
|
"react-beautiful-dnd": "13.1.1",
|
|
@@ -64,7 +65,7 @@
|
|
|
64
65
|
"@svgr/cli": "6.5.1",
|
|
65
66
|
"@types/react": "18.0.28",
|
|
66
67
|
"@types/react-beautiful-dnd": "13.1.3",
|
|
67
|
-
"@types/uuid": "9.0.
|
|
68
|
+
"@types/uuid": "9.0.1",
|
|
68
69
|
"@types/yaireo__tagify": "4.16.1",
|
|
69
70
|
"react": "18.2.0",
|
|
70
71
|
"react-dom": "18.2.0"
|
|
@@ -75,5 +76,5 @@
|
|
|
75
76
|
"publishConfig": {
|
|
76
77
|
"access": "public"
|
|
77
78
|
},
|
|
78
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "bd4414826a6d38b928b5ba2ea68e58160b784562"
|
|
79
80
|
}
|