@nullplatform/ui-plugin-sdk 0.11.0 → 0.12.0

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.
@@ -348,7 +348,7 @@ export declare const DataTable: import("react").ComponentType<Omit<{
348
348
  isLoading?: boolean | undefined;
349
349
  initialState?: Readonly<Record<string, unknown>> | undefined;
350
350
  paginationProps?: Readonly<Record<string, unknown>> | undefined;
351
- variant?: "default" | "embedded" | undefined;
351
+ variant?: "default" | "embedded" | "plain" | undefined;
352
352
  } & {
353
353
  readonly onChangeTableState?: ((payload: unknown) => void) | undefined;
354
354
  readonly onRowClick?: ((payload: unknown) => void) | undefined;
@@ -1,4 +1,4 @@
1
- // Generated by scripts/sync-contracts.mjs from @nullplatform/react-ui-components@0.15.14. Don't edit: change the contract in
1
+ // Generated by scripts/sync-contracts.mjs from @nullplatform/react-ui-components@0.15.18. Don't edit: change the contract in
2
2
  // react-ui-components, bump `uiComponentsContracts` in package.json and run `pnpm sync:contracts`.
3
3
  import { component } from "./component.js";
4
4
  export const Badge = component("np-badge");
@@ -506,7 +506,7 @@ export declare const UI_COMPONENTS_CONTRACTS: readonly [{
506
506
  readonly rowClick: "onRowClick";
507
507
  };
508
508
  readonly values: {
509
- readonly variant: readonly ["default", "embedded"];
509
+ readonly variant: readonly ["default", "embedded", "plain"];
510
510
  };
511
511
  }, {
512
512
  readonly tag: "np-gauge";
@@ -1,4 +1,4 @@
1
- // Generated by scripts/sync-contracts.mjs from @nullplatform/react-ui-components@0.15.14. Don't edit: change the contract in
1
+ // Generated by scripts/sync-contracts.mjs from @nullplatform/react-ui-components@0.15.18. Don't edit: change the contract in
2
2
  // react-ui-components, bump `uiComponentsContracts` in package.json and run `pnpm sync:contracts`.
3
3
  export const UI_COMPONENTS_CONTRACTS = [
4
4
  {
@@ -278,7 +278,7 @@ export const UI_COMPONENTS_CONTRACTS = [
278
278
  component: "DataTable",
279
279
  properties: { "columns": "array", "data": "array", "serverSide": "boolean", "isLoading": "boolean", "initialState": "object", "paginationProps": "object", "variant": "string" },
280
280
  events: { "stateChange": "onChangeTableState", "rowClick": "onRowClick" },
281
- values: { "variant": ["default", "embedded"] },
281
+ values: { "variant": ["default", "embedded", "plain"] },
282
282
  },
283
283
  {
284
284
  tag: "np-gauge",
@@ -102,6 +102,8 @@ export interface DataTableColumn {
102
102
  priority?: number;
103
103
  };
104
104
  formatter?: DataTableFormatter;
105
+ /** Aligns the header and the cells together, such as `right` for numbers. Defaults to `left`. */
106
+ align?: "left" | "center" | "right";
105
107
  }
106
108
  /** A link cell: a route of the host, or an `href` outside it, which opens in a new tab. */
107
109
  export type DataTableLink = {
@@ -135,4 +137,6 @@ export interface DataTablePagination {
135
137
  totalCount?: number;
136
138
  hasNextPage?: boolean;
137
139
  pageSizeOptions?: number[];
140
+ /** Hides the pagination bar while every row fits the smallest page size, on the first page. */
141
+ hideWhenOnePage?: boolean;
138
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nullplatform/ui-plugin-sdk",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "SDK for nullplatform UI plugins: catalog components, bridge client and defineUI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -42,7 +42,7 @@
42
42
  "test": "vitest run --passWithNoTests",
43
43
  "sync:contracts": "node scripts/sync-contracts.mjs"
44
44
  },
45
- "uiComponentsContracts": "0.15.14",
45
+ "uiComponentsContracts": "0.15.18",
46
46
  "dependencies": {
47
47
  "@remote-dom/core": "^1.11.1",
48
48
  "@remote-dom/react": "^1.2.2",