@invana/blocks 0.0.33 → 0.0.34

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.d.cts CHANGED
@@ -1655,6 +1655,12 @@ interface BlockProps<K extends BlockKind = BlockKind> {
1655
1655
  value?: unknown;
1656
1656
  /** Names its form and fields. Unset, one is made. */
1657
1657
  id?: string;
1658
+ /**
1659
+ * Set into running text: a table's outer cells sit flush with the words
1660
+ * around it. Only the assistant sets it; everywhere else a table keeps its
1661
+ * cell padding.
1662
+ */
1663
+ seamless?: boolean;
1658
1664
  }
1659
1665
 
1660
1666
  /** What draws each kind; `null` is a kind with no renderer yet, drawn as a labelled placeholder. */
@@ -1824,6 +1830,12 @@ interface BlockComponentProps {
1824
1830
  /** The value given, once answered. */
1825
1831
  value?: unknown;
1826
1832
  id?: string;
1833
+ /**
1834
+ * Set into running text: the outer cells of a table sit flush with the words
1835
+ * around it. The assistant sets it; a board panel or a page section does not,
1836
+ * so its tables keep their padding.
1837
+ */
1838
+ seamless?: boolean;
1827
1839
  /**
1828
1840
  * Patches to `spec` as they arrive — the block draws `spec` with them
1829
1841
  * applied, and a new `spec` starts over from it. See `useBlockStream`.
@@ -2243,7 +2255,7 @@ declare function SuggestionsAsk({ spec, state, value: given, onAction }: BlockPr
2243
2255
  * total sits under the rows in bold. With a `rowKey`, picking a row sends
2244
2256
  * `select` with its key, and the `selected` row is drawn picked.
2245
2257
  */
2246
- declare function TableBlock({ spec, onAction }: BlockProps<"table">): React.JSX.Element;
2258
+ declare function TableBlock({ spec, onAction, seamless }: BlockProps<"table">): React.JSX.Element;
2247
2259
 
2248
2260
  /**
2249
2261
  * A few dated events, in order, each marked by what it did to the figure — with
package/dist/index.d.ts CHANGED
@@ -1655,6 +1655,12 @@ interface BlockProps<K extends BlockKind = BlockKind> {
1655
1655
  value?: unknown;
1656
1656
  /** Names its form and fields. Unset, one is made. */
1657
1657
  id?: string;
1658
+ /**
1659
+ * Set into running text: a table's outer cells sit flush with the words
1660
+ * around it. Only the assistant sets it; everywhere else a table keeps its
1661
+ * cell padding.
1662
+ */
1663
+ seamless?: boolean;
1658
1664
  }
1659
1665
 
1660
1666
  /** What draws each kind; `null` is a kind with no renderer yet, drawn as a labelled placeholder. */
@@ -1824,6 +1830,12 @@ interface BlockComponentProps {
1824
1830
  /** The value given, once answered. */
1825
1831
  value?: unknown;
1826
1832
  id?: string;
1833
+ /**
1834
+ * Set into running text: the outer cells of a table sit flush with the words
1835
+ * around it. The assistant sets it; a board panel or a page section does not,
1836
+ * so its tables keep their padding.
1837
+ */
1838
+ seamless?: boolean;
1827
1839
  /**
1828
1840
  * Patches to `spec` as they arrive — the block draws `spec` with them
1829
1841
  * applied, and a new `spec` starts over from it. See `useBlockStream`.
@@ -2243,7 +2255,7 @@ declare function SuggestionsAsk({ spec, state, value: given, onAction }: BlockPr
2243
2255
  * total sits under the rows in bold. With a `rowKey`, picking a row sends
2244
2256
  * `select` with its key, and the `selected` row is drawn picked.
2245
2257
  */
2246
- declare function TableBlock({ spec, onAction }: BlockProps<"table">): React.JSX.Element;
2258
+ declare function TableBlock({ spec, onAction, seamless }: BlockProps<"table">): React.JSX.Element;
2247
2259
 
2248
2260
  /**
2249
2261
  * A few dated events, in order, each marked by what it did to the figure — with
package/dist/index.js CHANGED
@@ -1580,7 +1580,7 @@ function CellText({ cell }) {
1580
1580
  }
1581
1581
  );
1582
1582
  }
1583
- function TableBlock({ spec, onAction }) {
1583
+ function TableBlock({ spec, onAction, seamless }) {
1584
1584
  const truncated = spec.total != null && spec.total > spec.rows.length;
1585
1585
  const highlighted = new Set(spec.highlight?.map((i) => spec.rows[i]));
1586
1586
  const data = spec.totals ? [...spec.rows, spec.totals] : spec.rows;
@@ -1603,7 +1603,8 @@ function TableBlock({ spec, onAction }) {
1603
1603
  columns,
1604
1604
  data,
1605
1605
  density: "compact",
1606
- seamless: true,
1606
+ bordered: false,
1607
+ seamless,
1607
1608
  enableSorting: false,
1608
1609
  enableColumnVisibility: false,
1609
1610
  minWidth: spec.columns.length > FITS ? spec.columns.length * COLUMN_MIN : void 0,