@malloydata/render 0.0.380 → 0.0.382

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.
@@ -1,9 +1,11 @@
1
1
  import { RenderPluginFactory, CoreVizPluginInstance } from '../../api/plugin-types';
2
2
  import { Field, NestField } from '../../data_tree';
3
3
  import { BarChartSettings } from './get-bar_chart-settings';
4
+ import { ChartDisplayConfig } from '../../component/chart/resolve-chart-display';
4
5
  export interface BarChartPluginInstance extends CoreVizPluginInstance<BarChartPluginMetadata> {
5
6
  getTopNSeries?: (maxSeries: number) => (string | number | boolean)[];
6
7
  field: NestField;
8
+ chartDisplay: ChartDisplayConfig;
7
9
  syntheticSeriesField?: Field;
8
10
  hasMultipleSeriesFields?: boolean;
9
11
  }
@@ -1,7 +1,7 @@
1
- import { Channel, SeriesChannel, YChannel } from '../../component/types';
1
+ import { XChannel, SeriesChannel, YChannel } from '../../component/types';
2
2
  import { JSONSchemaObject, JSONSchemaArray, JSONSchemaString, JSONSchemaBoolean, JSONSchemaOneOf } from '../../api/json-schema-types';
3
3
  export interface BarChartSettings extends Record<string, unknown> {
4
- xChannel: Channel;
4
+ xChannel: XChannel;
5
5
  yChannel: YChannel;
6
6
  seriesChannel: SeriesChannel;
7
7
  isStack: boolean;
@@ -19,6 +19,7 @@ export interface IBarChartSettingsSchema extends JSONSchemaObject {
19
19
  };
20
20
  type: JSONSchemaString;
21
21
  independent: JSONSchemaString;
22
+ limit: JSONSchemaOneOf;
22
23
  };
23
24
  };
24
25
  yChannel: JSONSchemaObject & {
@@ -1,6 +1,7 @@
1
1
  import { RenderPluginFactory, CoreVizPluginInstance } from '../../api/plugin-types';
2
2
  import { Field, NestField } from '../../data_tree';
3
3
  import { LineChartSettings } from './get-line_chart-settings';
4
+ import { ChartDisplayConfig } from '../../component/chart/resolve-chart-display';
4
5
  interface LineChartPluginMetadata {
5
6
  type: 'line';
6
7
  field: NestField;
@@ -13,6 +14,7 @@ interface SeriesStats {
13
14
  }
14
15
  interface LineChartPluginInstance extends CoreVizPluginInstance<LineChartPluginMetadata> {
15
16
  field: NestField;
17
+ chartDisplay: ChartDisplayConfig;
16
18
  seriesStats: Map<string, SeriesStats>;
17
19
  getTopNSeries: (maxSeries: number) => (string | number | boolean)[];
18
20
  syntheticSeriesField?: Field;
@@ -10,7 +10,6 @@ export declare class RenderFieldMetadata {
10
10
  private onPluginCreateError?;
11
11
  private registry;
12
12
  private rootField;
13
- private warnedLegacyDeclaredPathPlugins;
14
13
  readonly logCollector: RenderLogCollector;
15
14
  constructor(result: Malloy.Result, pluginRegistry?: RenderPluginFactory[], pluginOptions?: Record<string, unknown>, onPluginCreateError?: OnPluginCreateError | undefined, logCollector?: RenderLogCollector);
16
15
  private instantiatePluginsForField;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/render",
3
- "version": "0.0.380",
3
+ "version": "0.0.382",
4
4
  "license": "MIT",
5
5
  "main": "dist/module/index.umd.js",
6
6
  "types": "dist/module/index.d.ts",
@@ -29,8 +29,8 @@
29
29
  "generate-flow": "ts-node ../../scripts/gen-flow.ts"
30
30
  },
31
31
  "dependencies": {
32
- "@malloydata/malloy-interfaces": "0.0.380",
33
- "@malloydata/malloy-tag": "0.0.380",
32
+ "@malloydata/malloy-interfaces": "0.0.382",
33
+ "@malloydata/malloy-tag": "0.0.382",
34
34
  "@tanstack/solid-virtual": "^3.10.4",
35
35
  "lodash": "^4.18.1",
36
36
  "luxon": "^3.5.0",
@@ -42,8 +42,8 @@
42
42
  "vega-lite": "^5.2.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@malloydata/db-duckdb": "0.0.380",
46
- "@malloydata/malloy": "0.0.380",
45
+ "@malloydata/db-duckdb": "0.0.382",
46
+ "@malloydata/malloy": "0.0.382",
47
47
  "@storybook/addon-essentials": "^8.6.15",
48
48
  "@storybook/addon-interactions": "^8.6.15",
49
49
  "@storybook/addon-links": "^8.6.15",