@ai-matrx/records-ui 0.93.146 → 0.95.2

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.
@@ -37,10 +37,13 @@ interface TableScopeProps {
37
37
  children: ReactNode;
38
38
  /** Shown while the Table's organization is unknown, or when no Table is chosen. */
39
39
  fallback?: ReactNode;
40
+ /** Shown when the list of Tables could not be read, or the Table is not one this person can
41
+ * open — a scope that never resolves must say so, never wait forever. Defaults to `fallback`. */
42
+ unavailable?: ReactNode;
40
43
  tables?: TablesAnywhere;
41
44
  }
42
45
  /** The record store, bound to the organization the chosen Table lives in. */
43
- declare function TableScope({ dataSource, userId, tableId, children, fallback, tables }: TableScopeProps): react.JSX.Element;
46
+ declare function TableScope({ dataSource, userId, tableId, children, fallback, unavailable, tables }: TableScopeProps): react.JSX.Element;
44
47
  interface ColumnValuesEditorProps {
45
48
  tableId: string;
46
49
  /** `{field key: stored value}` — what the step matches on or writes. */
package/dist/pickers.d.ts CHANGED
@@ -37,10 +37,13 @@ interface TableScopeProps {
37
37
  children: ReactNode;
38
38
  /** Shown while the Table's organization is unknown, or when no Table is chosen. */
39
39
  fallback?: ReactNode;
40
+ /** Shown when the list of Tables could not be read, or the Table is not one this person can
41
+ * open — a scope that never resolves must say so, never wait forever. Defaults to `fallback`. */
42
+ unavailable?: ReactNode;
40
43
  tables?: TablesAnywhere;
41
44
  }
42
45
  /** The record store, bound to the organization the chosen Table lives in. */
43
- declare function TableScope({ dataSource, userId, tableId, children, fallback, tables }: TableScopeProps): react.JSX.Element;
46
+ declare function TableScope({ dataSource, userId, tableId, children, fallback, unavailable, tables }: TableScopeProps): react.JSX.Element;
44
47
  interface ColumnValuesEditorProps {
45
48
  tableId: string;
46
49
  /** `{field key: stored value}` — what the step matches on or writes. */