@measured/puck 0.9.1-canary.3c337be → 0.9.1-canary.9e4a0e3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +2 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3033,12 +3033,6 @@ var ExternalInput = ({
3033
3033
  const [data, setData] = (0, import_react23.useState)([]);
3034
3034
  const [isOpen, setOpen] = (0, import_react23.useState)(false);
3035
3035
  const [selectedData, setSelectedData] = (0, import_react23.useState)(value);
3036
- const keys = (0, import_react23.useMemo)(
3037
- () => Object.keys(data).filter(
3038
- (key) => typeof data[key] === "string" || typeof data[key] === "number"
3039
- ),
3040
- [data]
3041
- );
3042
3036
  (0, import_react23.useEffect)(() => {
3043
3037
  (() => __async(void 0, null, function* () {
3044
3038
  if (field.adaptor) {
@@ -3095,7 +3089,7 @@ var ExternalInput = ({
3095
3089
  children: [
3096
3090
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h2", { className: getClassName5("modalHeading"), children: "Select content" }),
3097
3091
  data.length ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName5("modalTableWrapper"), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("table", { children: [
3098
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("tr", { children: keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("th", { style: { textAlign: "left" }, children: key }, key)) }) }),
3092
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("tr", { children: Object.keys(data[0]).map((key) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("th", { style: { textAlign: "left" }, children: key }, key)) }) }),
3099
3093
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("tbody", { children: data.map((item, i) => {
3100
3094
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3101
3095
  "tr",
@@ -3106,7 +3100,7 @@ var ExternalInput = ({
3106
3100
  setOpen(false);
3107
3101
  setSelectedData(item);
3108
3102
  },
3109
- children: keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("td", { children: item[key] }, key))
3103
+ children: Object.keys(item).map((key) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("td", { children: item[key] }, key))
3110
3104
  },
3111
3105
  i
3112
3106
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.9.1-canary.3c337be",
3
+ "version": "0.9.1-canary.9e4a0e3",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",