@ai-matrx/records-ui 0.116.103 → 0.116.104

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/pickers.cjs CHANGED
@@ -15136,10 +15136,11 @@ var import_field_formats13 = require("@ai-matrx/design-system/field-formats");
15136
15136
  var import_jsx_runtime56 = require("react/jsx-runtime");
15137
15137
  var SHARED_FOR_MS = 5e3;
15138
15138
  var sharedReads = /* @__PURE__ */ new WeakMap();
15139
+ var KEPT_OUT_OF_LISTS = /* @__PURE__ */ new Set(["agent_output", "copying"]);
15139
15140
  function readTablesAnywhere(dataSource) {
15140
15141
  const held = sharedReads.get(dataSource);
15141
15142
  if (held && Date.now() - held.at < SHARED_FOR_MS) return held.read;
15142
- const read = Promise.resolve(dataSource.rpc("data_home_tables", {}, { schema: "custom" })).then(
15143
+ const read = Promise.resolve(dataSource.rpc("data_home", { p_include_platform_tables: true }, { schema: "custom" })).then(
15143
15144
  ({ data, error }) => {
15144
15145
  if (error) {
15145
15146
  return {
@@ -15148,7 +15149,8 @@ function readTablesAnywhere(dataSource) {
15148
15149
  rows: []
15149
15150
  };
15150
15151
  }
15151
- const rows = (Array.isArray(data) ? data : []).slice();
15152
+ const answered = data && typeof data === "object" && !Array.isArray(data) ? data.tables : null;
15153
+ const rows = (Array.isArray(answered) ? answered : []).filter((t) => !KEPT_OUT_OF_LISTS.has(t.kind ?? ""));
15152
15154
  rows.sort((a, b) => a.table_name.localeCompare(b.table_name));
15153
15155
  return { loading: false, error: null, rows };
15154
15156
  },