@uniformdev/context-ui 19.165.1-alpha.0 → 19.166.1
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 +16 -32
- package/dist/index.js +16 -32
- package/dist/index.mjs +16 -32
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -494,22 +494,16 @@ var ContextData = ({
|
|
|
494
494
|
const contextData = useContextData(contextConfig);
|
|
495
495
|
const dimensionsData = useDimensions(contextConfig);
|
|
496
496
|
if (contextData.error || contextData.notConfigured) {
|
|
497
|
-
if (ErrorComponent)
|
|
498
|
-
|
|
499
|
-
else
|
|
500
|
-
return /* @__PURE__ */ jsx7(Fragment2, { children: "ErrorComponent is not configured" });
|
|
497
|
+
if (ErrorComponent) return /* @__PURE__ */ jsx7(ErrorComponent, { contextConfig, result: contextData });
|
|
498
|
+
else return /* @__PURE__ */ jsx7(Fragment2, { children: "ErrorComponent is not configured" });
|
|
501
499
|
}
|
|
502
500
|
if (dimensionsData.error || dimensionsData.notConfigured) {
|
|
503
|
-
if (ErrorComponent)
|
|
504
|
-
|
|
505
|
-
else
|
|
506
|
-
return /* @__PURE__ */ jsx7(Fragment2, { children: "ErrorComponent is not configured" });
|
|
501
|
+
if (ErrorComponent) return /* @__PURE__ */ jsx7(ErrorComponent, { contextConfig, result: dimensionsData });
|
|
502
|
+
else return /* @__PURE__ */ jsx7(Fragment2, { children: "ErrorComponent is not configured" });
|
|
507
503
|
}
|
|
508
504
|
if (contextData.loading || dimensionsData.loading) {
|
|
509
|
-
if (LoadingComponent)
|
|
510
|
-
|
|
511
|
-
else
|
|
512
|
-
return /* @__PURE__ */ jsx7(LoadingIndicator2, {});
|
|
505
|
+
if (LoadingComponent) return /* @__PURE__ */ jsx7(LoadingComponent, {});
|
|
506
|
+
else return /* @__PURE__ */ jsx7(LoadingIndicator2, {});
|
|
513
507
|
}
|
|
514
508
|
return /* @__PURE__ */ jsx7(
|
|
515
509
|
ContextDataContext.Provider,
|
|
@@ -618,8 +612,7 @@ var DimensionGroupHeading = (props) => {
|
|
|
618
612
|
import { css as css3 } from "@emotion/react";
|
|
619
613
|
import { jsx as jsx9 } from "@emotion/react/jsx-runtime";
|
|
620
614
|
function DimensionMenuErrorMessage({ message }) {
|
|
621
|
-
if (!message)
|
|
622
|
-
return null;
|
|
615
|
+
if (!message) return null;
|
|
623
616
|
return /* @__PURE__ */ jsx9(
|
|
624
617
|
"div",
|
|
625
618
|
{
|
|
@@ -921,12 +914,10 @@ var EnrichmentTag = ({
|
|
|
921
914
|
}) => {
|
|
922
915
|
const { loading, result: dimensions, error } = useDimensions(contextConfig);
|
|
923
916
|
const allEnrichments = useMemo(() => {
|
|
924
|
-
if (dimensions)
|
|
925
|
-
return dimensions.dimensions.filter((dimension) => dimension.category === "ENR");
|
|
917
|
+
if (dimensions) return dimensions.dimensions.filter((dimension) => dimension.category === "ENR");
|
|
926
918
|
}, [dimensions]);
|
|
927
919
|
const remainingEnrichments = useMemo(() => {
|
|
928
|
-
if (!value)
|
|
929
|
-
return allEnrichments;
|
|
920
|
+
if (!value) return allEnrichments;
|
|
930
921
|
if (allEnrichments)
|
|
931
922
|
return allEnrichments.filter(
|
|
932
923
|
(enr) => !value.some((val) => getEnrichmentVectorKey(val.cat, val.key) === enr.dim)
|
|
@@ -956,10 +947,8 @@ var EnrichmentTag = ({
|
|
|
956
947
|
const finalValue = validData.length === 0 ? null : validData;
|
|
957
948
|
setValue(finalValue);
|
|
958
949
|
};
|
|
959
|
-
if (error)
|
|
960
|
-
|
|
961
|
-
if (loading || dimensions === null)
|
|
962
|
-
return /* @__PURE__ */ jsx16(LoadingIndicator3, {});
|
|
950
|
+
if (error) return /* @__PURE__ */ jsx16(Callout2, { type: "danger", children: error });
|
|
951
|
+
if (loading || dimensions === null) return /* @__PURE__ */ jsx16(LoadingIndicator3, {});
|
|
963
952
|
return /* @__PURE__ */ jsxs8("fieldset", { className: "enrichment-tag", children: [
|
|
964
953
|
displayTitle ? /* @__PURE__ */ jsx16("div", { css: { display: "flex", justifyContent: "space-between", marginBottom: "var(--spacing-base)" }, children: /* @__PURE__ */ jsx16("legend", { css: { fontSize: "var(--fs-md)", fontWeight: "var(--fw-bold)" }, children: "Enrichment Tags" }) }) : null,
|
|
965
954
|
!(allEnrichments == null ? void 0 : allEnrichments.length) ? /* @__PURE__ */ jsx16(NoEnrichmentsView, { contextConfig }) : !showAddNewEnrichmentTagPanel && !value ? /* @__PURE__ */ jsx16(
|
|
@@ -1186,8 +1175,7 @@ var SelectedEnrichments = ({ list, setList, dimIndex }) => {
|
|
|
1186
1175
|
};
|
|
1187
1176
|
return /* @__PURE__ */ jsx16(Fragment5, { children: list.map((enrichment, index) => {
|
|
1188
1177
|
const dimData = dimIndex[getEnrichmentVectorKey(enrichment.cat, enrichment.key)];
|
|
1189
|
-
if (!dimData)
|
|
1190
|
-
return;
|
|
1178
|
+
if (!dimData) return;
|
|
1191
1179
|
return /* @__PURE__ */ jsxs8(
|
|
1192
1180
|
"div",
|
|
1193
1181
|
{
|
|
@@ -1541,8 +1529,7 @@ function convertErrorsToObj(errors) {
|
|
|
1541
1529
|
const result = { crit: [] };
|
|
1542
1530
|
errors.forEach((err) => {
|
|
1543
1531
|
var _a;
|
|
1544
|
-
if (!err.path)
|
|
1545
|
-
return;
|
|
1532
|
+
if (!err.path) return;
|
|
1546
1533
|
const regexp = /\[(\d+)\]\.(\w+)/g;
|
|
1547
1534
|
const matches = (_a = [...err.path.matchAll(regexp)]) == null ? void 0 : _a[0];
|
|
1548
1535
|
if ((matches == null ? void 0 : matches.length) == 3) {
|
|
@@ -1605,10 +1592,8 @@ var PersonalizationCriteria = ({
|
|
|
1605
1592
|
setValidationError(err);
|
|
1606
1593
|
}
|
|
1607
1594
|
}, [value, dimensions, validate]);
|
|
1608
|
-
if (error)
|
|
1609
|
-
|
|
1610
|
-
if (loading || dimensions === null)
|
|
1611
|
-
return /* @__PURE__ */ jsx18(LoadingIndicator4, {});
|
|
1595
|
+
if (error) return /* @__PURE__ */ jsx18(Callout4, { type: "danger", children: error });
|
|
1596
|
+
if (loading || dimensions === null) return /* @__PURE__ */ jsx18(LoadingIndicator4, {});
|
|
1612
1597
|
const handleSetValue = async (value2) => {
|
|
1613
1598
|
const err = await validate(value2, dimensions);
|
|
1614
1599
|
setValidationError(err);
|
|
@@ -1652,8 +1637,7 @@ import { LoadingIndicator as LoadingIndicator5 } from "@uniformdev/design-system
|
|
|
1652
1637
|
import { Fragment as Fragment6, jsx as jsx19 } from "@emotion/react/jsx-runtime";
|
|
1653
1638
|
function ProjectUIVersion({ children, versionMap, contextConfig }) {
|
|
1654
1639
|
const { loading, result: data } = useContextData(contextConfig);
|
|
1655
|
-
if (loading)
|
|
1656
|
-
return /* @__PURE__ */ jsx19(LoadingIndicator5, {});
|
|
1640
|
+
if (loading) return /* @__PURE__ */ jsx19(LoadingIndicator5, {});
|
|
1657
1641
|
if (data) {
|
|
1658
1642
|
const Component = versionMap[data.project.ui_version];
|
|
1659
1643
|
if (Component) {
|
package/dist/index.js
CHANGED
|
@@ -546,22 +546,16 @@ var ContextData = ({
|
|
|
546
546
|
const contextData = useContextData(contextConfig);
|
|
547
547
|
const dimensionsData = useDimensions(contextConfig);
|
|
548
548
|
if (contextData.error || contextData.notConfigured) {
|
|
549
|
-
if (ErrorComponent)
|
|
550
|
-
|
|
551
|
-
else
|
|
552
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: "ErrorComponent is not configured" });
|
|
549
|
+
if (ErrorComponent) return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ErrorComponent, { contextConfig, result: contextData });
|
|
550
|
+
else return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: "ErrorComponent is not configured" });
|
|
553
551
|
}
|
|
554
552
|
if (dimensionsData.error || dimensionsData.notConfigured) {
|
|
555
|
-
if (ErrorComponent)
|
|
556
|
-
|
|
557
|
-
else
|
|
558
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: "ErrorComponent is not configured" });
|
|
553
|
+
if (ErrorComponent) return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ErrorComponent, { contextConfig, result: dimensionsData });
|
|
554
|
+
else return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: "ErrorComponent is not configured" });
|
|
559
555
|
}
|
|
560
556
|
if (contextData.loading || dimensionsData.loading) {
|
|
561
|
-
if (LoadingComponent)
|
|
562
|
-
|
|
563
|
-
else
|
|
564
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_design_system3.LoadingIndicator, {});
|
|
557
|
+
if (LoadingComponent) return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LoadingComponent, {});
|
|
558
|
+
else return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_design_system3.LoadingIndicator, {});
|
|
565
559
|
}
|
|
566
560
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
567
561
|
ContextDataContext.Provider,
|
|
@@ -670,8 +664,7 @@ var DimensionGroupHeading = (props) => {
|
|
|
670
664
|
var import_react9 = require("@emotion/react");
|
|
671
665
|
var import_jsx_runtime8 = require("@emotion/react/jsx-runtime");
|
|
672
666
|
function DimensionMenuErrorMessage({ message }) {
|
|
673
|
-
if (!message)
|
|
674
|
-
return null;
|
|
667
|
+
if (!message) return null;
|
|
675
668
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
676
669
|
"div",
|
|
677
670
|
{
|
|
@@ -965,12 +958,10 @@ var EnrichmentTag = ({
|
|
|
965
958
|
}) => {
|
|
966
959
|
const { loading, result: dimensions, error } = useDimensions(contextConfig);
|
|
967
960
|
const allEnrichments = (0, import_react13.useMemo)(() => {
|
|
968
|
-
if (dimensions)
|
|
969
|
-
return dimensions.dimensions.filter((dimension) => dimension.category === "ENR");
|
|
961
|
+
if (dimensions) return dimensions.dimensions.filter((dimension) => dimension.category === "ENR");
|
|
970
962
|
}, [dimensions]);
|
|
971
963
|
const remainingEnrichments = (0, import_react13.useMemo)(() => {
|
|
972
|
-
if (!value)
|
|
973
|
-
return allEnrichments;
|
|
964
|
+
if (!value) return allEnrichments;
|
|
974
965
|
if (allEnrichments)
|
|
975
966
|
return allEnrichments.filter(
|
|
976
967
|
(enr) => !value.some((val) => (0, import_context.getEnrichmentVectorKey)(val.cat, val.key) === enr.dim)
|
|
@@ -1000,10 +991,8 @@ var EnrichmentTag = ({
|
|
|
1000
991
|
const finalValue = validData.length === 0 ? null : validData;
|
|
1001
992
|
setValue(finalValue);
|
|
1002
993
|
};
|
|
1003
|
-
if (error)
|
|
1004
|
-
|
|
1005
|
-
if (loading || dimensions === null)
|
|
1006
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_design_system9.LoadingIndicator, {});
|
|
994
|
+
if (error) return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_design_system9.Callout, { type: "danger", children: error });
|
|
995
|
+
if (loading || dimensions === null) return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_design_system9.LoadingIndicator, {});
|
|
1007
996
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("fieldset", { className: "enrichment-tag", children: [
|
|
1008
997
|
displayTitle ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { css: { display: "flex", justifyContent: "space-between", marginBottom: "var(--spacing-base)" }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("legend", { css: { fontSize: "var(--fs-md)", fontWeight: "var(--fw-bold)" }, children: "Enrichment Tags" }) }) : null,
|
|
1009
998
|
!(allEnrichments == null ? void 0 : allEnrichments.length) ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(NoEnrichmentsView, { contextConfig }) : !showAddNewEnrichmentTagPanel && !value ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
@@ -1230,8 +1219,7 @@ var SelectedEnrichments = ({ list, setList, dimIndex }) => {
|
|
|
1230
1219
|
};
|
|
1231
1220
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, { children: list.map((enrichment, index) => {
|
|
1232
1221
|
const dimData = dimIndex[(0, import_context.getEnrichmentVectorKey)(enrichment.cat, enrichment.key)];
|
|
1233
|
-
if (!dimData)
|
|
1234
|
-
return;
|
|
1222
|
+
if (!dimData) return;
|
|
1235
1223
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1236
1224
|
"div",
|
|
1237
1225
|
{
|
|
@@ -1585,8 +1573,7 @@ function convertErrorsToObj(errors) {
|
|
|
1585
1573
|
const result = { crit: [] };
|
|
1586
1574
|
errors.forEach((err) => {
|
|
1587
1575
|
var _a;
|
|
1588
|
-
if (!err.path)
|
|
1589
|
-
return;
|
|
1576
|
+
if (!err.path) return;
|
|
1590
1577
|
const regexp = /\[(\d+)\]\.(\w+)/g;
|
|
1591
1578
|
const matches = (_a = [...err.path.matchAll(regexp)]) == null ? void 0 : _a[0];
|
|
1592
1579
|
if ((matches == null ? void 0 : matches.length) == 3) {
|
|
@@ -1649,10 +1636,8 @@ var PersonalizationCriteria = ({
|
|
|
1649
1636
|
setValidationError(err);
|
|
1650
1637
|
}
|
|
1651
1638
|
}, [value, dimensions, validate]);
|
|
1652
|
-
if (error)
|
|
1653
|
-
|
|
1654
|
-
if (loading || dimensions === null)
|
|
1655
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_design_system11.LoadingIndicator, {});
|
|
1639
|
+
if (error) return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_design_system11.Callout, { type: "danger", children: error });
|
|
1640
|
+
if (loading || dimensions === null) return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_design_system11.LoadingIndicator, {});
|
|
1656
1641
|
const handleSetValue = async (value2) => {
|
|
1657
1642
|
const err = await validate(value2, dimensions);
|
|
1658
1643
|
setValidationError(err);
|
|
@@ -1696,8 +1681,7 @@ var import_design_system12 = require("@uniformdev/design-system");
|
|
|
1696
1681
|
var import_jsx_runtime18 = require("@emotion/react/jsx-runtime");
|
|
1697
1682
|
function ProjectUIVersion({ children, versionMap, contextConfig }) {
|
|
1698
1683
|
const { loading, result: data } = useContextData(contextConfig);
|
|
1699
|
-
if (loading)
|
|
1700
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_design_system12.LoadingIndicator, {});
|
|
1684
|
+
if (loading) return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_design_system12.LoadingIndicator, {});
|
|
1701
1685
|
if (data) {
|
|
1702
1686
|
const Component = versionMap[data.project.ui_version];
|
|
1703
1687
|
if (Component) {
|
package/dist/index.mjs
CHANGED
|
@@ -494,22 +494,16 @@ var ContextData = ({
|
|
|
494
494
|
const contextData = useContextData(contextConfig);
|
|
495
495
|
const dimensionsData = useDimensions(contextConfig);
|
|
496
496
|
if (contextData.error || contextData.notConfigured) {
|
|
497
|
-
if (ErrorComponent)
|
|
498
|
-
|
|
499
|
-
else
|
|
500
|
-
return /* @__PURE__ */ jsx7(Fragment2, { children: "ErrorComponent is not configured" });
|
|
497
|
+
if (ErrorComponent) return /* @__PURE__ */ jsx7(ErrorComponent, { contextConfig, result: contextData });
|
|
498
|
+
else return /* @__PURE__ */ jsx7(Fragment2, { children: "ErrorComponent is not configured" });
|
|
501
499
|
}
|
|
502
500
|
if (dimensionsData.error || dimensionsData.notConfigured) {
|
|
503
|
-
if (ErrorComponent)
|
|
504
|
-
|
|
505
|
-
else
|
|
506
|
-
return /* @__PURE__ */ jsx7(Fragment2, { children: "ErrorComponent is not configured" });
|
|
501
|
+
if (ErrorComponent) return /* @__PURE__ */ jsx7(ErrorComponent, { contextConfig, result: dimensionsData });
|
|
502
|
+
else return /* @__PURE__ */ jsx7(Fragment2, { children: "ErrorComponent is not configured" });
|
|
507
503
|
}
|
|
508
504
|
if (contextData.loading || dimensionsData.loading) {
|
|
509
|
-
if (LoadingComponent)
|
|
510
|
-
|
|
511
|
-
else
|
|
512
|
-
return /* @__PURE__ */ jsx7(LoadingIndicator2, {});
|
|
505
|
+
if (LoadingComponent) return /* @__PURE__ */ jsx7(LoadingComponent, {});
|
|
506
|
+
else return /* @__PURE__ */ jsx7(LoadingIndicator2, {});
|
|
513
507
|
}
|
|
514
508
|
return /* @__PURE__ */ jsx7(
|
|
515
509
|
ContextDataContext.Provider,
|
|
@@ -618,8 +612,7 @@ var DimensionGroupHeading = (props) => {
|
|
|
618
612
|
import { css as css3 } from "@emotion/react";
|
|
619
613
|
import { jsx as jsx9 } from "@emotion/react/jsx-runtime";
|
|
620
614
|
function DimensionMenuErrorMessage({ message }) {
|
|
621
|
-
if (!message)
|
|
622
|
-
return null;
|
|
615
|
+
if (!message) return null;
|
|
623
616
|
return /* @__PURE__ */ jsx9(
|
|
624
617
|
"div",
|
|
625
618
|
{
|
|
@@ -921,12 +914,10 @@ var EnrichmentTag = ({
|
|
|
921
914
|
}) => {
|
|
922
915
|
const { loading, result: dimensions, error } = useDimensions(contextConfig);
|
|
923
916
|
const allEnrichments = useMemo(() => {
|
|
924
|
-
if (dimensions)
|
|
925
|
-
return dimensions.dimensions.filter((dimension) => dimension.category === "ENR");
|
|
917
|
+
if (dimensions) return dimensions.dimensions.filter((dimension) => dimension.category === "ENR");
|
|
926
918
|
}, [dimensions]);
|
|
927
919
|
const remainingEnrichments = useMemo(() => {
|
|
928
|
-
if (!value)
|
|
929
|
-
return allEnrichments;
|
|
920
|
+
if (!value) return allEnrichments;
|
|
930
921
|
if (allEnrichments)
|
|
931
922
|
return allEnrichments.filter(
|
|
932
923
|
(enr) => !value.some((val) => getEnrichmentVectorKey(val.cat, val.key) === enr.dim)
|
|
@@ -956,10 +947,8 @@ var EnrichmentTag = ({
|
|
|
956
947
|
const finalValue = validData.length === 0 ? null : validData;
|
|
957
948
|
setValue(finalValue);
|
|
958
949
|
};
|
|
959
|
-
if (error)
|
|
960
|
-
|
|
961
|
-
if (loading || dimensions === null)
|
|
962
|
-
return /* @__PURE__ */ jsx16(LoadingIndicator3, {});
|
|
950
|
+
if (error) return /* @__PURE__ */ jsx16(Callout2, { type: "danger", children: error });
|
|
951
|
+
if (loading || dimensions === null) return /* @__PURE__ */ jsx16(LoadingIndicator3, {});
|
|
963
952
|
return /* @__PURE__ */ jsxs8("fieldset", { className: "enrichment-tag", children: [
|
|
964
953
|
displayTitle ? /* @__PURE__ */ jsx16("div", { css: { display: "flex", justifyContent: "space-between", marginBottom: "var(--spacing-base)" }, children: /* @__PURE__ */ jsx16("legend", { css: { fontSize: "var(--fs-md)", fontWeight: "var(--fw-bold)" }, children: "Enrichment Tags" }) }) : null,
|
|
965
954
|
!(allEnrichments == null ? void 0 : allEnrichments.length) ? /* @__PURE__ */ jsx16(NoEnrichmentsView, { contextConfig }) : !showAddNewEnrichmentTagPanel && !value ? /* @__PURE__ */ jsx16(
|
|
@@ -1186,8 +1175,7 @@ var SelectedEnrichments = ({ list, setList, dimIndex }) => {
|
|
|
1186
1175
|
};
|
|
1187
1176
|
return /* @__PURE__ */ jsx16(Fragment5, { children: list.map((enrichment, index) => {
|
|
1188
1177
|
const dimData = dimIndex[getEnrichmentVectorKey(enrichment.cat, enrichment.key)];
|
|
1189
|
-
if (!dimData)
|
|
1190
|
-
return;
|
|
1178
|
+
if (!dimData) return;
|
|
1191
1179
|
return /* @__PURE__ */ jsxs8(
|
|
1192
1180
|
"div",
|
|
1193
1181
|
{
|
|
@@ -1541,8 +1529,7 @@ function convertErrorsToObj(errors) {
|
|
|
1541
1529
|
const result = { crit: [] };
|
|
1542
1530
|
errors.forEach((err) => {
|
|
1543
1531
|
var _a;
|
|
1544
|
-
if (!err.path)
|
|
1545
|
-
return;
|
|
1532
|
+
if (!err.path) return;
|
|
1546
1533
|
const regexp = /\[(\d+)\]\.(\w+)/g;
|
|
1547
1534
|
const matches = (_a = [...err.path.matchAll(regexp)]) == null ? void 0 : _a[0];
|
|
1548
1535
|
if ((matches == null ? void 0 : matches.length) == 3) {
|
|
@@ -1605,10 +1592,8 @@ var PersonalizationCriteria = ({
|
|
|
1605
1592
|
setValidationError(err);
|
|
1606
1593
|
}
|
|
1607
1594
|
}, [value, dimensions, validate]);
|
|
1608
|
-
if (error)
|
|
1609
|
-
|
|
1610
|
-
if (loading || dimensions === null)
|
|
1611
|
-
return /* @__PURE__ */ jsx18(LoadingIndicator4, {});
|
|
1595
|
+
if (error) return /* @__PURE__ */ jsx18(Callout4, { type: "danger", children: error });
|
|
1596
|
+
if (loading || dimensions === null) return /* @__PURE__ */ jsx18(LoadingIndicator4, {});
|
|
1612
1597
|
const handleSetValue = async (value2) => {
|
|
1613
1598
|
const err = await validate(value2, dimensions);
|
|
1614
1599
|
setValidationError(err);
|
|
@@ -1652,8 +1637,7 @@ import { LoadingIndicator as LoadingIndicator5 } from "@uniformdev/design-system
|
|
|
1652
1637
|
import { Fragment as Fragment6, jsx as jsx19 } from "@emotion/react/jsx-runtime";
|
|
1653
1638
|
function ProjectUIVersion({ children, versionMap, contextConfig }) {
|
|
1654
1639
|
const { loading, result: data } = useContextData(contextConfig);
|
|
1655
|
-
if (loading)
|
|
1656
|
-
return /* @__PURE__ */ jsx19(LoadingIndicator5, {});
|
|
1640
|
+
if (loading) return /* @__PURE__ */ jsx19(LoadingIndicator5, {});
|
|
1657
1641
|
if (data) {
|
|
1658
1642
|
const Component = versionMap[data.project.ui_version];
|
|
1659
1643
|
if (Component) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/context-ui",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.166.1",
|
|
4
4
|
"description": "React-based functionality and components for Uniform Context",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@emotion/react": "11.11.3",
|
|
36
36
|
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.2.1/react-icons-all-files-5.2.1.tgz",
|
|
37
|
-
"@uniformdev/context": "19.
|
|
38
|
-
"@uniformdev/design-system": "19.
|
|
37
|
+
"@uniformdev/context": "19.166.1",
|
|
38
|
+
"@uniformdev/design-system": "19.166.1",
|
|
39
39
|
"immer": "10.0.4",
|
|
40
40
|
"react-beautiful-dnd": "13.1.1",
|
|
41
41
|
"react-select": "5.8.0",
|
|
42
|
-
"react-use": "17.
|
|
42
|
+
"react-use": "17.5.0",
|
|
43
43
|
"reakit": "1.3.11",
|
|
44
44
|
"timeago.js": "4.0.2",
|
|
45
45
|
"uuid": "9.0.1",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "d6a92d76bb91fa41a51cf27a69d81e0cc985f80f"
|
|
81
81
|
}
|