@uniformdev/context-ui 19.83.0 → 19.85.1-alpha.13

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 CHANGED
@@ -724,7 +724,7 @@ import {
724
724
  InputSelect,
725
725
  LoadingIndicator as LoadingIndicator2
726
726
  } from "@uniformdev/design-system";
727
- import produce from "immer";
727
+ import { produce } from "immer";
728
728
  import { useMemo, useState as useState4 } from "react";
729
729
  import { Fragment as Fragment4, jsx as jsx15, jsxs as jsxs7 } from "@emotion/react/jsx-runtime";
730
730
  var addEnrichmentLink = css4`
@@ -1101,7 +1101,7 @@ function opHasRhs(op) {
1101
1101
  import { css as css6 } from "@emotion/react";
1102
1102
  import { CgCloseO as CgCloseO2 } from "@react-icons/all-files/cg/CgCloseO";
1103
1103
  import { AddListButton as AddListButton2, Callout as Callout2, Icon as Icon5, InputInlineSelect, Paragraph } from "@uniformdev/design-system";
1104
- import produce2 from "immer";
1104
+ import { produce as produce2 } from "immer";
1105
1105
 
1106
1106
  // src/components/PersonalizationCriteria/PersonalizationCriteriaStatic.styles.ts
1107
1107
  import { css as css5 } from "@emotion/react";
package/dist/index.js CHANGED
@@ -775,7 +775,7 @@ var import_CgMathMinus = require("@react-icons/all-files/cg/CgMathMinus");
775
775
  var import_CgMathPlus = require("@react-icons/all-files/cg/CgMathPlus");
776
776
  var import_context = require("@uniformdev/context");
777
777
  var import_design_system8 = require("@uniformdev/design-system");
778
- var import_immer = __toESM(require("immer"));
778
+ var import_immer = require("immer");
779
779
  var import_react10 = require("react");
780
780
  var import_jsx_runtime14 = require("@emotion/react/jsx-runtime");
781
781
  var addEnrichmentLink = import_react9.css`
@@ -1047,7 +1047,7 @@ var ScoreCounter = ({
1047
1047
  var SelectedEnrichments = ({ list, setList, dimIndex }) => {
1048
1048
  const removeEnrichment = (index) => {
1049
1049
  setList(
1050
- (0, import_immer.default)(list, (draft) => {
1050
+ (0, import_immer.produce)(list, (draft) => {
1051
1051
  draft.splice(index, 1);
1052
1052
  })
1053
1053
  );
@@ -1056,7 +1056,7 @@ var SelectedEnrichments = ({ list, setList, dimIndex }) => {
1056
1056
  var _a;
1057
1057
  const cap = (_a = dimIndex[`${list[index].cat}_${list[index].key}`]) == null ? void 0 : _a.cap;
1058
1058
  setList(
1059
- (0, import_immer.default)(list, (draft) => {
1059
+ (0, import_immer.produce)(list, (draft) => {
1060
1060
  draft[index].str = getCappedValue(Number(value) || 0, cap);
1061
1061
  })
1062
1062
  );
@@ -1152,7 +1152,7 @@ function opHasRhs(op) {
1152
1152
  var import_react12 = require("@emotion/react");
1153
1153
  var import_CgCloseO2 = require("@react-icons/all-files/cg/CgCloseO");
1154
1154
  var import_design_system9 = require("@uniformdev/design-system");
1155
- var import_immer2 = __toESM(require("immer"));
1155
+ var import_immer2 = require("immer");
1156
1156
 
1157
1157
  // src/components/PersonalizationCriteria/PersonalizationCriteriaStatic.styles.ts
1158
1158
  var import_react11 = require("@emotion/react");
@@ -1246,13 +1246,13 @@ var PersonalizationCriteriaStatic = ({
1246
1246
  };
1247
1247
  const update = (crit, index) => {
1248
1248
  setValue(
1249
- (0, import_immer2.default)(currentValue, (draft) => {
1249
+ (0, import_immer2.produce)(currentValue, (draft) => {
1250
1250
  draft.crit[index] = crit;
1251
1251
  })
1252
1252
  );
1253
1253
  };
1254
1254
  const removeFromList = (index) => {
1255
- const newValue = (0, import_immer2.default)(currentValue, (draft) => {
1255
+ const newValue = (0, import_immer2.produce)(currentValue, (draft) => {
1256
1256
  draft.crit.splice(index, 1);
1257
1257
  });
1258
1258
  const finalValue = newValue.crit.length === 0 ? null : newValue;
package/dist/index.mjs CHANGED
@@ -724,7 +724,7 @@ import {
724
724
  InputSelect,
725
725
  LoadingIndicator as LoadingIndicator2
726
726
  } from "@uniformdev/design-system";
727
- import produce from "immer";
727
+ import { produce } from "immer";
728
728
  import { useMemo, useState as useState4 } from "react";
729
729
  import { Fragment as Fragment4, jsx as jsx15, jsxs as jsxs7 } from "@emotion/react/jsx-runtime";
730
730
  var addEnrichmentLink = css4`
@@ -1101,7 +1101,7 @@ function opHasRhs(op) {
1101
1101
  import { css as css6 } from "@emotion/react";
1102
1102
  import { CgCloseO as CgCloseO2 } from "@react-icons/all-files/cg/CgCloseO";
1103
1103
  import { AddListButton as AddListButton2, Callout as Callout2, Icon as Icon5, InputInlineSelect, Paragraph } from "@uniformdev/design-system";
1104
- import produce2 from "immer";
1104
+ import { produce as produce2 } from "immer";
1105
1105
 
1106
1106
  // src/components/PersonalizationCriteria/PersonalizationCriteriaStatic.styles.ts
1107
1107
  import { css as css5 } from "@emotion/react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context-ui",
3
- "version": "19.83.0",
3
+ "version": "19.85.1-alpha.13+642f68468",
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.1",
36
36
  "@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v4.10.1/react-icons-all-files-4.10.1.tgz",
37
- "@uniformdev/context": "19.83.0",
38
- "@uniformdev/design-system": "19.83.0",
39
- "immer": "9.0.21",
37
+ "@uniformdev/context": "19.85.1-alpha.13+642f68468",
38
+ "@uniformdev/design-system": "19.85.1-alpha.13+642f68468",
39
+ "immer": "10.0.3",
40
40
  "react-beautiful-dnd": "13.1.1",
41
41
  "react-select": "5.7.7",
42
- "react-use": "17.4.0",
42
+ "react-use": "17.4.2",
43
43
  "reakit": "1.3.11",
44
44
  "timeago.js": "4.0.2",
45
45
  "uuid": "9.0.1",
@@ -60,7 +60,7 @@
60
60
  "@storybook/builder-webpack5": "6.5.16",
61
61
  "@storybook/manager-webpack5": "6.5.16",
62
62
  "@storybook/react": "6.5.16",
63
- "@types/react": "18.2.21",
63
+ "@types/react": "18.2.39",
64
64
  "@types/react-beautiful-dnd": "13.1.7",
65
65
  "@types/uuid": "9.0.4",
66
66
  "autoprefixer": "10.4.16",
@@ -76,5 +76,5 @@
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  },
79
- "gitHead": "bcadc9d652227a57ec901f94b4d2d166986fd5c0"
79
+ "gitHead": "642f684682fa3d0166b58e5ddc7548cfa18f21f3"
80
80
  }