@plasmicpkgs/plasmic-rich-components 1.0.77 → 1.0.79

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.js CHANGED
@@ -207,10 +207,11 @@ function buildFieldsPropType(opts) {
207
207
  displayName: displayName,
208
208
  control: control,
209
209
  argNames: ["currentItem", "currentValue"],
210
- argValues: function (_props, ctx) {
211
- var _a;
212
- var row = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.data) === null || _a === void 0 ? void 0 : _a[0];
213
- var cell = _props.fieldId ? row === null || row === void 0 ? void 0 : row[_props.fieldId] : undefined;
210
+ argValues: function (_props, ctx, _a) {
211
+ var _b;
212
+ var item = _a.item;
213
+ var row = (_b = ctx === null || ctx === void 0 ? void 0 : ctx.data) === null || _b === void 0 ? void 0 : _b[0];
214
+ var cell = item.fieldId ? row === null || row === void 0 ? void 0 : row[item.fieldId] : undefined;
214
215
  return [row, cell];
215
216
  },
216
217
  });
@@ -257,7 +258,7 @@ function buildFieldsPropType(opts) {
257
258
  type: "string",
258
259
  displayName: "Title",
259
260
  defaultValueHint: getDefaultValueHint("title"),
260
- }, expr: rowDataType("Customize data"), isHidden: {
261
+ }, expr: rowDataType("Customize cell data"), isHidden: {
261
262
  type: "boolean",
262
263
  displayName: "Is hidden",
263
264
  defaultValueHint: getDefaultValueHint("isHidden"),
@@ -871,7 +872,10 @@ function useColumnDefinitions$1(data, props) {
871
872
  return defaultRender(_);
872
873
  },
873
874
  render: function (value, record, rowIndex) {
874
- return renderValue(value, record, cconfig);
875
+ var cellValue = cconfig.fieldId
876
+ ? record[cconfig.fieldId]
877
+ : undefined;
878
+ return renderValue(cellValue, record, cconfig);
875
879
  },
876
880
  };
877
881
  return columnDefinition;
@@ -1021,7 +1025,7 @@ function generateNavMenuType(remainingDepth, displayName, defaultValue) {
1021
1025
  nameFunc: function (item) {
1022
1026
  return item.name || (!displayName ? "Unnamed nested item" : "Unnamed item");
1023
1027
  },
1024
- fields: __assign({ path: "string", name: "string" }, (remainingDepth === 0
1028
+ fields: __assign({ path: "href", name: "string" }, (remainingDepth === 0
1025
1029
  ? {}
1026
1030
  : {
1027
1031
  routes: generateNavMenuType(remainingDepth - 1),
@@ -1306,7 +1310,10 @@ function useColumnDefinitions(data, props) {
1306
1310
  return defaultRender(_);
1307
1311
  },
1308
1312
  render: function (value, record, rowIndex) {
1309
- return renderValue(value, record, cconfig);
1313
+ var cellValue = cconfig.fieldId
1314
+ ? record[cconfig.fieldId]
1315
+ : undefined;
1316
+ return renderValue(cellValue, record, cconfig);
1310
1317
  },
1311
1318
  };
1312
1319
  return columnDefinition;