@malloydata/render 0.0.417 → 0.0.418

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.
@@ -58,6 +58,20 @@ const config: StorybookConfig = {
58
58
  ),
59
59
  },
60
60
  },
61
+ // Pre-bundle heavy WASM/Arrow deps that Vite's scanner misses in
62
+ // the monorepo (linked packages aren't crawled for deep imports).
63
+ // Without this, Storybook throws "module not found" on first load.
64
+ // @motherduck/wasm-client must be excluded because it ships its own
65
+ // WASM loader that breaks under Vite's esbuild pre-bundling.
66
+ optimizeDeps: {
67
+ include: [
68
+ '@duckdb/duckdb-wasm',
69
+ 'web-worker',
70
+ 'apache-arrow',
71
+ '@storybook/theming/create',
72
+ ],
73
+ exclude: ['@motherduck/wasm-client'],
74
+ },
61
75
  server: {
62
76
  // Disable HMR for now, as we can't seem to get malloy core nor web component to fully support it
63
77
  hmr: false,
@@ -64,6 +64,21 @@ export interface TableNestConfig {
64
64
  }
65
65
  export interface DashboardNestConfig {
66
66
  maxTableHeight: number | null;
67
+ columns: number | undefined;
68
+ gap: number | undefined;
69
+ }
70
+ /**
71
+ * Per-child layout config for the direct children of a # dashboard nest.
72
+ * Resolved once at setup time and stashed on each child via
73
+ * setDashboardChildConfig, so the dashboard component never reads child
74
+ * tags at render time and these dashboard-only concepts stay off the
75
+ * universal field base.
76
+ */
77
+ export interface DashboardChildConfig {
78
+ colspan?: number;
79
+ subtitle?: string;
80
+ break?: boolean;
81
+ borderless?: boolean;
67
82
  }
68
83
  /**
69
84
  * Run the appropriate tag resolver for a field based on its renderAs type
@@ -13,6 +13,7 @@ export declare abstract class FieldBase {
13
13
  protected _renderAs: string;
14
14
  private _tagConfig;
15
15
  private _resolvedLabel;
16
+ private _dashboardChildConfig;
16
17
  private _columnConfig;
17
18
  private _validationErrors;
18
19
  getPlugins(): RenderPluginInstance[];
@@ -35,6 +36,16 @@ export declare abstract class FieldBase {
35
36
  */
36
37
  getLabel(): string;
37
38
  setResolvedLabel(label: string | undefined): void;
39
+ /**
40
+ * Get the pre-resolved dashboard child config (colspan, subtitle, break,
41
+ * borderless) for a field that is a direct child of a # dashboard nest.
42
+ * Resolved at setup time so the dashboard component never reads tags at
43
+ * render time. Stored as one per-child config object rather than as
44
+ * separate fields, so these dashboard-only concepts do not spread across
45
+ * the universal field base. Returns undefined for non-dashboard children.
46
+ */
47
+ getDashboardChildConfig<T>(): T | undefined;
48
+ setDashboardChildConfig(config: unknown): void;
38
49
  /**
39
50
  * Get the pre-resolved column configuration for this field.
40
51
  * Column configs are extracted at setup time (width, height, word_break).