@oliasoft-open-source/react-ui-library 5.7.0 → 5.7.1-beta-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 +10 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8458,25 +8458,27 @@ const createDiffJson = (e, t, n) => {
8458
8458
  oldJson: a,
8459
8459
  newJson: o
8460
8460
  };
8461
- }, ChangesOverview = ({ sectionNames: e, diffs: t }) => {
8462
- let n = {
8461
+ }, ChangesOverview = ({ sectionNames: e, userName: t, diffs: n }) => {
8462
+ let r = {
8463
8463
  headers: [{ cells: [
8464
+ { value: "Modified By" },
8464
8465
  { value: "Type" },
8465
8466
  { value: "Before" },
8466
8467
  { value: "After" },
8467
8468
  { value: "" }
8468
8469
  ] }],
8469
- rows: t.map((t) => {
8470
- let { deltaFormat: n, path: r } = t, i = getSectionName(e, r), { type: a, before: o, after: s } = defaultMessage(n);
8470
+ rows: n.map((n) => {
8471
+ let { deltaFormat: r, path: i } = n, a = getSectionName(e, i), { type: o, before: s, after: c } = defaultMessage(r);
8471
8472
  return { cells: [
8472
- { value: a },
8473
+ { value: t },
8473
8474
  { value: o },
8474
8475
  { value: s },
8475
- { value: i }
8476
+ { value: c },
8477
+ { value: a }
8476
8478
  ] };
8477
8479
  })
8478
8480
  };
8479
- return /* @__PURE__ */ jsx(Table, { table: n });
8481
+ return /* @__PURE__ */ jsx(Table, { table: r });
8480
8482
  }, viewTypes = Object.freeze({
8481
8483
  summary: {
8482
8484
  label: "Summary",
@@ -8517,6 +8519,7 @@ const ComparisonViewModal = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, se
8517
8519
  options: s,
8518
8520
  value: c
8519
8521
  }), c.value === "summary" ? /* @__PURE__ */ jsx(ChangesOverview, {
8522
+ userName: e.userName,
8520
8523
  sectionNames: i,
8521
8524
  diffs: transformDiffs(o)
8522
8525
  }) : /* @__PURE__ */ jsx(DiffViewer, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "5.7.0",
3
+ "version": "5.7.1-beta-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": {