@oliasoft-open-source/react-ui-library 5.17.1-beta-4 → 5.17.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8995,12 +8995,12 @@ var humanize = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$
8995
8995
  let n = e[t];
8996
8996
  return !n || isNumeric(n) ? findReasonableProperty(e, t - 1) : humanize(n);
8997
8997
  }, buildChangeSentence = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
8998
- let o = formatValue(r), s = formatValue(i);
8998
+ let o = formatValue(r), s = formatValue(i), c = a ? ` in ${a}` : "";
8999
8999
  switch (t) {
9000
- case "modified": return `${e} updated ${n} from ${o} to ${s} in ${a}.`;
9001
- case "created": return `${e} created ${s} in ${a}.`;
9002
- case "deleted": return `${e} deleted ${o} in ${a}.`;
9003
- default: return `${e} changed ${n} in ${a}.`;
9000
+ case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
9001
+ case "created": return `${e} created ${s}${c}.`;
9002
+ case "deleted": return `${e} deleted ${o}${c}.`;
9003
+ default: return `${e} changed ${n}${c}.`;
9004
9004
  }
9005
9005
  };
9006
9006
  const ChangesOverview = ({ sectionNames: e, userName: t, diffs: n }) => /* @__PURE__ */ jsx(Table, { table: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "5.17.1-beta-4",
3
+ "version": "5.17.1",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {