mctable-react 1.1.0 → 1.2.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/README.md CHANGED
@@ -54,6 +54,11 @@ You can also pass `settings`, `license`, or `onReady` if you need deeper access
54
54
 
55
55
  ## Changelog
56
56
 
57
+ ```
58
+ v1.2.0
59
+ - Upgrade to `mctable` core library `v1.8.0`
60
+ ```
61
+
57
62
 
58
63
  ```
59
64
  v1.1.0
package/dist/index.cjs CHANGED
@@ -111,8 +111,8 @@ function __getColumnSettingsOnlyChanges({
111
111
  for (let index = 0; index < prevColumns.length; index++) {
112
112
  const prevColumn = prevColumns[index];
113
113
  const nextColumn = nextColumns[index];
114
- const { validation: prevValidation, isVisible: prevVisibility, ...prevColumnWithoutValidation } = prevColumn;
115
- const { validation: nextValidation, isVisible: nextVisibility, ...nextColumnWithoutValidation } = nextColumn;
114
+ const { validation: prevValidation, isVisible: prevVisibility, isEditable: prevEditable, ...prevColumnWithoutValidation } = prevColumn;
115
+ const { validation: nextValidation, isVisible: nextVisibility, isEditable: nextEditable, ...nextColumnWithoutValidation } = nextColumn;
116
116
  if (__stableSignature(prevColumnWithoutValidation) !== __stableSignature(nextColumnWithoutValidation)) {
117
117
  return null;
118
118
  }
@@ -120,7 +120,7 @@ function __getColumnSettingsOnlyChanges({
120
120
  const nextRequired = nextValidation?.required;
121
121
  const prevTypeMatch = prevValidation?.typeMatch;
122
122
  const nextTypeMatch = nextValidation?.typeMatch;
123
- if (prevRequired === nextRequired && prevTypeMatch === nextTypeMatch && prevVisibility === nextVisibility) {
123
+ if (prevRequired === nextRequired && prevTypeMatch === nextTypeMatch && prevEditable === nextEditable && prevVisibility === nextVisibility) {
124
124
  continue;
125
125
  }
126
126
  const settings = {
@@ -129,6 +129,9 @@ function __getColumnSettingsOnlyChanges({
129
129
  if (prevVisibility !== nextVisibility) {
130
130
  settings.isVisible = nextVisibility;
131
131
  }
132
+ if (prevEditable !== nextEditable) {
133
+ settings.isEditable = nextEditable;
134
+ }
132
135
  if (prevRequired !== nextRequired) {
133
136
  settings.required = nextRequired ?? null;
134
137
  }
package/dist/index.js CHANGED
@@ -74,8 +74,8 @@ function __getColumnSettingsOnlyChanges({
74
74
  for (let index = 0; index < prevColumns.length; index++) {
75
75
  const prevColumn = prevColumns[index];
76
76
  const nextColumn = nextColumns[index];
77
- const { validation: prevValidation, isVisible: prevVisibility, ...prevColumnWithoutValidation } = prevColumn;
78
- const { validation: nextValidation, isVisible: nextVisibility, ...nextColumnWithoutValidation } = nextColumn;
77
+ const { validation: prevValidation, isVisible: prevVisibility, isEditable: prevEditable, ...prevColumnWithoutValidation } = prevColumn;
78
+ const { validation: nextValidation, isVisible: nextVisibility, isEditable: nextEditable, ...nextColumnWithoutValidation } = nextColumn;
79
79
  if (__stableSignature(prevColumnWithoutValidation) !== __stableSignature(nextColumnWithoutValidation)) {
80
80
  return null;
81
81
  }
@@ -83,7 +83,7 @@ function __getColumnSettingsOnlyChanges({
83
83
  const nextRequired = nextValidation?.required;
84
84
  const prevTypeMatch = prevValidation?.typeMatch;
85
85
  const nextTypeMatch = nextValidation?.typeMatch;
86
- if (prevRequired === nextRequired && prevTypeMatch === nextTypeMatch && prevVisibility === nextVisibility) {
86
+ if (prevRequired === nextRequired && prevTypeMatch === nextTypeMatch && prevEditable === nextEditable && prevVisibility === nextVisibility) {
87
87
  continue;
88
88
  }
89
89
  const settings = {
@@ -92,6 +92,9 @@ function __getColumnSettingsOnlyChanges({
92
92
  if (prevVisibility !== nextVisibility) {
93
93
  settings.isVisible = nextVisibility;
94
94
  }
95
+ if (prevEditable !== nextEditable) {
96
+ settings.isEditable = nextEditable;
97
+ }
95
98
  if (prevRequired !== nextRequired) {
96
99
  settings.required = nextRequired ?? null;
97
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mctable-react",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -71,6 +71,6 @@
71
71
  "vite": "^5.4.12"
72
72
  },
73
73
  "dependencies": {
74
- "mctable": "^1.6.0"
74
+ "mctable": "^1.8.0"
75
75
  }
76
76
  }