@malloydata/render 0.0.350 → 0.0.352

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,6 +1,7 @@
1
1
  import { Field, RootField } from './data_tree';
2
2
  import { RenderPluginFactory, RenderPluginInstance } from './api/plugin-types';
3
3
  import { RenderFieldRegistryEntry } from './registry/types';
4
+ import { RenderLogCollector } from './component/render-log-collector';
4
5
  import type * as Malloy from '@malloydata/malloy-interfaces';
5
6
  export type OnPluginCreateError = (error: Error, factory: RenderPluginFactory, field: Field, plugins: RenderPluginInstance[]) => void;
6
7
  export declare class RenderFieldMetadata {
@@ -9,7 +10,8 @@ export declare class RenderFieldMetadata {
9
10
  private onPluginCreateError?;
10
11
  private registry;
11
12
  private rootField;
12
- constructor(result: Malloy.Result, pluginRegistry?: RenderPluginFactory[], pluginOptions?: Record<string, unknown>, onPluginCreateError?: OnPluginCreateError | undefined);
13
+ readonly logCollector: RenderLogCollector;
14
+ constructor(result: Malloy.Result, pluginRegistry?: RenderPluginFactory[], pluginOptions?: Record<string, unknown>, onPluginCreateError?: OnPluginCreateError | undefined, logCollector?: RenderLogCollector);
13
15
  private instantiatePluginsForField;
14
16
  private registerFields;
15
17
  private populateRenderFieldProperties;
@@ -17,4 +19,16 @@ export declare class RenderFieldMetadata {
17
19
  getRootField(): RootField;
18
20
  getPluginsForField(fieldKey: string): RenderPluginInstance[];
19
21
  getFieldEntry(fieldKey: string): RenderFieldRegistryEntry | undefined;
22
+ /**
23
+ * Validate tag/field type compatibility and tag values.
24
+ * Called during registerFields for each field.
25
+ */
26
+ private validateFieldTags;
27
+ /**
28
+ * Mark tag paths declared by plugins and built-in renderers as read.
29
+ * This prevents false-positive "unknown tag" warnings for tags that
30
+ * are consumed at render time or interaction time but may not have
31
+ * been read yet (e.g. virtualized charts, hover tooltips).
32
+ */
33
+ private markDeclaredTags;
20
34
  }
@@ -0,0 +1,13 @@
1
+ build: {
2
+ inputs = [
3
+ "src/**/*.ts",
4
+ "src/**/*.tsx",
5
+ "src/**/*.css",
6
+ "vite.config.mts",
7
+ "tsconfig.json"
8
+ ]
9
+ outputs = ["dist/module/index.mjs"]
10
+ commands = [
11
+ "npx vite build --outDir 'dist/module' --config vite.config.mts"
12
+ ]
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/render",
3
- "version": "0.0.350",
3
+ "version": "0.0.352",
4
4
  "license": "MIT",
5
5
  "main": "dist/module/index.umd.js",
6
6
  "types": "dist/module/index.d.ts",
@@ -20,17 +20,17 @@
20
20
  },
21
21
  "scripts": {
22
22
  "test": "jest --config=../../jest.config.js",
23
- "clean": "tsc --build --clean && rm -f tsconfig.tsbuildinfo",
23
+ "clean": "tsc --build --clean && rm -f tsconfig.tsbuildinfo && node ../../scripts/femto-build.js --clean",
24
24
  "prepublishOnly": "npm run build",
25
25
  "storybook": "rm -rf ./node_modules/.cache && storybook dev -p 6006",
26
26
  "storybook-windows": "del /s /q .\\node_modules\\.cache && storybook dev -p 6006",
27
27
  "build-storybook": "storybook build",
28
- "build": "vite build --outDir 'dist/module' --config vite.config.mts",
28
+ "build": "node ../../scripts/femto-build.js build",
29
29
  "generate-flow": "ts-node ../../scripts/gen-flow.ts"
30
30
  },
31
31
  "dependencies": {
32
- "@malloydata/malloy-interfaces": "0.0.350",
33
- "@malloydata/malloy-tag": "0.0.350",
32
+ "@malloydata/malloy-interfaces": "0.0.352",
33
+ "@malloydata/malloy-tag": "0.0.352",
34
34
  "@tanstack/solid-virtual": "^3.10.4",
35
35
  "lodash": "^4.17.20",
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.350",
46
- "@malloydata/malloy": "0.0.350",
45
+ "@malloydata/db-duckdb": "0.0.352",
46
+ "@malloydata/malloy": "0.0.352",
47
47
  "@storybook/addon-essentials": "^8.6.15",
48
48
  "@storybook/addon-interactions": "^8.6.15",
49
49
  "@storybook/addon-links": "^8.6.15",