@wordpress/widget-dashboard
Version:
Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.
8 lines (7 loc) • 824 B
Source Map (JSON)
{
"version": 3,
"sources": ["../../../src/utils/default-grid/default-grid.ts"],
"sourcesContent": ["import type { WidgetGridSettings } from '../../types';\nimport { WIDGET_DASHBOARD_COLUMN_COUNT } from '../../types';\nimport { DEFAULT_ROW_HEIGHT } from '../row-height-presets';\n\n/**\n * Canonical default grid settings. Applied by the dashboard when the\n * consumer omits `gridSettings`, and the baseline hosts should treat as\n * the factory default when persisting their own copy.\n */\nexport const DEFAULT_GRID: WidgetGridSettings = {\n\tmodel: 'grid',\n\tcolumns: WIDGET_DASHBOARD_COLUMN_COUNT,\n\trowHeight: DEFAULT_ROW_HEIGHT,\n};\n"],
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAA8C;AAC9C,gCAAmC;AAO5B,IAAM,eAAmC;AAAA,EAC/C,OAAO;AAAA,EACP,SAAS;AAAA,EACT,WAAW;AACZ;",
"names": []
}